How can I change ScriptAlias for /cgi-bin/ for just one VirtualHost? I have this in /usr/local/apache/conf/httpd.conf:
ScriptAlias /cgi-bin/ /home/example/public_html/cgi-bin/
Include "/usr/local/apache/conf/userdata/*.conf"
Include "/usr/local/apache/conf/userdata/*.owner-root"
Include "/usr/local/apache/conf/userdata/std/*.conf"
Include "/usr/local/apache/conf/userdata/std/*.owner-root"
Include "/usr/local/apache/conf/userdata/std/2/*.conf"
Include "/usr/local/apache/conf/userdata/std/2/*.owner-root"
Include "/usr/local/apache/conf/userdata/std/2/example/*.conf"
Include "/usr/local/apache/conf/userdata/std/2/example/example.com/*.conf"
In /usr/local/apache/conf/userdata/std/2/example/example.com/vhost.conf, I have this:
ScriptAlias /cgi-bin/ /home/example/cgi-bin/
When I restart Apache, I get this message:
[Thu Apr 03 03:00:30 2008] [warn] The ScriptAlias directive in /usr/local/apache/conf/userdata/std/2/example/example.com/vhost.conf at line 1 will probably never match because it overlaps an earlier ScriptAlias.
Sure enough, the later ScriptAlias is ignored. I would like to use /home/example/cgi-bin/ as /cgi-bin. How can I do that?
Thanks.
--df
ScriptAlias /cgi-bin/ /home/example/public_html/cgi-bin/
Include "/usr/local/apache/conf/userdata/*.conf"
Include "/usr/local/apache/conf/userdata/*.owner-root"
Include "/usr/local/apache/conf/userdata/std/*.conf"
Include "/usr/local/apache/conf/userdata/std/*.owner-root"
Include "/usr/local/apache/conf/userdata/std/2/*.conf"
Include "/usr/local/apache/conf/userdata/std/2/*.owner-root"
Include "/usr/local/apache/conf/userdata/std/2/example/*.conf"
Include "/usr/local/apache/conf/userdata/std/2/example/example.com/*.conf"
In /usr/local/apache/conf/userdata/std/2/example/example.com/vhost.conf, I have this:
ScriptAlias /cgi-bin/ /home/example/cgi-bin/
When I restart Apache, I get this message:
[Thu Apr 03 03:00:30 2008] [warn] The ScriptAlias directive in /usr/local/apache/conf/userdata/std/2/example/example.com/vhost.conf at line 1 will probably never match because it overlaps an earlier ScriptAlias.
Sure enough, the later ScriptAlias is ignored. I would like to use /home/example/cgi-bin/ as /cgi-bin. How can I do that?
Thanks.
--df