Hi,
I need to set up some configuration for an url, using the <Location> directive. I add the directives in the "Add directive" box in the admin panel, but in the Vhosts_ispconfig.conf I find them commented out as not supported. Here the relevant section stripped of personal data:
######################################
# Vhost:
www.myhost.com:80
######################################
#
#
<VirtualHost xxx.xxx.xxx.xxx:80>
# <Location /my/location> # NOT SUPPORTED!
# DirectoryIndex index.php index.html index.htm # NOT SUPPORTED!
# Options +Indexes # NOT SUPPORTED!
# IndexOptions FancyIndexing IconsAreLinks SuppressHTMLPreamble NameWidth=* # NOT SUPPORTED!
# IndexIgnore HEADER* banner.gif favicon.ico # NOT SUPPORTED!
# AddIcon favicon.ico *myfile*.zip # NOT SUPPORTED!
# AllowOverride None
# </Location>
ServerName
www.myhost.com:80
ServerAdmin
webmaster@myhost.com
DocumentRoot /var/www/web11/web
ServerAlias myhost.com
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ScriptAlias /cgi-bin/ /var/www/web11/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web11/log/error.log
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
AddType text/vnd.wap.wml .wml
AddType text/vnd.wap.wmlscript .ws .wmlscript
AddType image/vnd.wap.wbmp .wbmp
Alias /error/ "/var/www/web11/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web11/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web11/user/$1/web/$3
</VirtualHost>
Well, if I remove the # and restart apache...simply the <location> directive works perfectly but at the next change in the admin panel, all the <location> directive gets commented.
If it works, it is supported. And on another server I used this block of instructions for years without any problems.
I know I can move all to apache.con file, but I would like to keep everything in the vhost file.
Thanks
Recent comments
18 hours 1 min ago
23 hours 32 sec ago
1 day 26 min ago
1 day 1 hour ago
1 day 3 hours ago
1 day 7 hours ago
1 day 8 hours ago
1 day 10 hours ago
1 day 23 hours ago
2 days 1 hour ago