This is a discussion on subdomain config & cgi executions - newbie question within the Apache Web Server forums, part of the Web Server and Related Forums category; Does anyone have experience of configuration to do the following please? I have completed my initial setup of an Apache ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Does anyone have experience of configuration to do the following please?
I have completed my initial setup of an Apache 2.0.48 server with MySQL 3.23.49 and PHP4.3.4 on a Win2k server running ActivePerl-5.8.3.809. All appears to be running well with my default domain site. I wish to introduce and perform development of some subdomains. I have successfully used a series of VirtualHost directives in my .httpd config to point to these subdomains that I wish to now structure with their own respective cgi-bin directories. Looking at the Apache documentation it appears that I can use the Options directive to explicitly serve the directory I wish to use for CGI or I can use .htaccess files. I think I prefer the Options directive but how do I ensure no conflicts to my ScriptAlias directive for my c:/apache2/cgi-bin setting? Suggestions/comment or sample config please? Is there a best in class solution ? Thanks in advance Alan |
|
|||
|
Alan Powell <alan.powell@assured-design.com> wrote:
> I think I prefer the Options directive but how do I ensure no conflicts to > my ScriptAlias directive for my c:/apache2/cgi-bin setting? The ScriptAlias directive in the Virtual Host setting will superseed the one for the 'global' server. Davide -- | Gordon's first law: If a research project is not worth doing, it is | not worth doing well. | | |
|
|||
|
Thanks for clarifying that Davide.
Is this how my httpd file should look please? ie Can I embed a <Directory> into my virtual host section? It doesn't seem to work and I am puzzled now ...... <VirtualHost *> ServerName subdomain.mydomain.loc DocumentRoot "C:/Apache2/htdocs/websites/mydomain/subdomain" ServerAlias subdomain.mydomain ServerAdmin webmaster@subdomain.mydomain.loc ScriptAlias /cgi-bin/ "C:/Apache2/htdocs/websites/mydomain/subdomain/cgi-bin/" <Directory "C:/Apache2/htdocs/websites/mydomain/subdomain/cgi-bin"> AllowOverride None Options +ExecCGI Order allow,deny Allow from all </Directory> ErrorLog logs/mydomain/subdomain-error_log CustomLog logs/mydomain/subdomain_log common </VirtualHost> Many thanks for your advice Alan "Davide Bianchi" <davideyeahsure@onlyforfun.net> wrote in message news:c4jf9p$2ik8rk$2@ID-18487.news.uni-berlin.de... > Alan Powell <alan.powell@assured-design.com> wrote: > > I think I prefer the Options directive but how do I ensure no conflicts to > > my ScriptAlias directive for my c:/apache2/cgi-bin setting? > > The ScriptAlias directive in the Virtual Host setting will > superseed the one for the 'global' server. > > Davide > > -- > | Gordon's first law: If a research project is not worth doing, it is > | not worth doing well. > | > | |
|
|||
|
Alan Powell <alan.powell@assured-design.com> wrote:
> Is this how my httpd file should look please? Looks good to me. > Can I embed a <Directory> You can embed multiples. Exactly what's the problem? What's in the Apache logs? Davide -- | It's not just a computer -- it's your ass. | | | |
|
|||
|
Hi
There was nothing showing in the logs...... Restart of Apache didn't do it; reboot and away we went! All is working now. Thanks for your support. Alan "Davide Bianchi" <davideyeahsure@onlyforfun.net> wrote in message news:c4ju7a$2k19g5$5@ID-18487.news.uni-berlin.de... > Alan Powell <alan.powell@assured-design.com> wrote: > > Is this how my httpd file should look please? > > Looks good to me. > > > Can I embed a <Directory> > > You can embed multiples. > Exactly what's the problem? What's in the Apache logs? > > Davide > > -- > | It's not just a computer -- it's your ass. > | > | > | |