Hi to all. First, I apologize for the length of this. It's probably a simple problem, but I want to be thorough in my description. Also, please ignore any duplicate email. My connection has been a little nuts today.
Anyway, Im trying to set up an Apache server to host 2 sites, froghunters.net and froghunters.org. These are pretty much just for my use for experimentation. If it matters, this is on Apache 1.3.33 and FreeBSD 4.7. The server's primary domain is froghunters.org. I'm trying to virtualhost froghunters.net. That part seems to work. The part that doesn't work is the CGI directory. As far as I can tell, the excerpt from httpd.conf below should tell the server to look to /usr/local/apache/vhosts/froghunters_net/cgi-bin for any scripts for CGI programs for the froghunters.net domain: <VirtualHost froghunters.net www.froghunters.net> ServerName froghunters.net ServerAdmin [EMAIL PROTECTED] DirectoryIndex index.html DocumentRoot /usr/local/apache/vhosts/froghunters_net ScriptAlias /cgi-bin/ /usr/local/apache/vhosts/froghunters_net/cgi-bin <Directory /usr/local/apache/vhosts/froghunters_net/cgi-bin> AllowOverride None Options ExecCGI Order allow,deny Allow from all </Directory> ErrorLog /usr/local/apache/logs/froghunters_net/error_log CustomLog /usr/local/apache/logs/froghunters_net/access_log combined </VirtualHost> To test this, I have placed in /usr/local/apache/vhosts/froghunters_net/cgi-bin the script: #!/usr/bin/perl print "Content-type: text/html\n\n"; print "This is froghunters.net"; and in /usr/local/apache/cgi-bin I have placed: #!/usr/bin/perl print "Content-type: text/html\n\n"; print "This is froghunters.org"; Now, if I go to http://www.froghunters.org/cgi-bin/test.pl, I get "This is froghunters.org" in the browser. However, if I go to http://www.froghunters.net/cgi-bin/test.pl, I also get "This is froghunters.org". Apparently, both domains are looking to the same directory for CGI. Any thoughts? I've clearly missed something. Thanks for the help-- Andrew -------------------- BYU Unix Users Group http://uug.byu.edu/ The opinions expressed in this message are the responsibility of their author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/newbies
