subdomain config & cgi executions - newbie question

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-02-2004
Alan Powell
 
Posts: n/a
Default subdomain config & cgi executions - newbie question

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



  #2 (permalink)  
Old 04-02-2004
Davide Bianchi
 
Posts: n/a
Default Re: subdomain config & cgi executions - newbie question

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.
|
|
  #3 (permalink)  
Old 04-02-2004
Alan Powell
 
Posts: n/a
Default Re: subdomain config & cgi executions - newbie question

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.
> |
> |




  #4 (permalink)  
Old 04-02-2004
Davide Bianchi
 
Posts: n/a
Default Re: subdomain config & cgi executions - newbie question

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.
|
|
|
  #5 (permalink)  
Old 04-02-2004
Alan Powell
 
Posts: n/a
Default Re: subdomain config & cgi executions - newbie question

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.
> |
> |
> |




 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:59 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0