ServerAdmin lol@example.com ServerName nms.example.com ServerAlias nms.example.com DocumentRoot /opt/tgnms/web ScriptAlias /api/write/ /opt/tgnms/web/api/write/ ScriptAlias /api/read/ /opt/tgnms/web/api/read/ ScriptAlias /api/public/ /opt/tgnms/web/api/public/ AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch AuthUserFile /opt/tgnms/etc/htpasswd-write AuthName "Demo/test of tgnms write" AuthType Basic Require valid-user AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch AuthUserFile /opt/tgnms/etc/htpasswd-read AuthName "Demo/test of tgnms read" AuthType Basic Require valid-user AllowOverride None Options +ExecCGI -MultiViews +Indexes +SymLinksIfOwnerMatch Require all granted AllowOverride None Options Indexes FollowSymLinks MultiViews AddDefaultCharset UTF-8 Require all granted ErrorLog /var/log/apache2/error-nms.example.com.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access-nms.example.com.log combined ServerSignature On