Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Our Archives > General Archives > Servers > Apache Config Assistance...

 
Apache Config Assistance...
Thread Tools
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status: Online
Jan 9, 2003, 12:48 AM
 
OK so I lost my server and the httpd.conf was NOT backed up. I think i'm just about back, but my CGI's aren't working. The errors that are coming up say that the Option ExecCGI is not enabled for the directory. Now I adda a VirtualHost container for each virtual host, and put the Options in there. I did NOT make a Directory container for the folder of each of the web sites. I can't remember how I had it before, but before it worked perfect. I had no cgi-bin, cgi's, worked where ever i put them, SSI's worked with the bit hack, using the html suffix. Do I have to create directory containers for each web folder? If I do, which attributes go in there, and which go in the virtual host container, and where exactly do they go in the httpd.conf file? That attributes I have in my virtual host containers are...


Code:
<VirtualHost *> ServerName server.com ServerAlias www.server.com Options ExecCGI Indexes Includes ServerAdmin user@server.com DocumentRoot /webfolder/server ErrorLog /path/to/error_log.txt ErrorDocument 404 404.html XBitHack on </VirtualHost>
     
Registered User
Join Date: Nov 2002
Location: Far from the internet.
Status: Offline
Jan 10, 2003, 04:08 PM
 
Originally posted by l008com:

Code:
<VirtualHost *> ServerName server.com ServerAlias www.server.com Options ExecCGI Indexes Includes ServerAdmin user@server.com DocumentRoot /webfolder/server ErrorLog /path/to/error_log.txt ErrorDocument 404 404.html XBitHack on </VirtualHost>
What version of Apache are you using?

Anyway, I am no Apache expert, but I though you had to add a ScriptAlias line to each virtual host, like:

Code:
ScriptAlias /pathToCgi-binOnWeb/ /pathToCgi-binOnServer/
for example my config looks like:
Code:
ScriptAlias /cgi-bin/ /var/www/notyourtypical.com/cgi-bin/
I never messed with the ExecCGI options within Virtual Host containers, because ExecCGI is on for all hosts by default, and I never figures why I would turn them off for some. But I admin both sites on the server, so I don't have to worry about who I want to have running CGI scripts.

I hope this helps!

Regards,
Ben
     
 
   
Thread Tools
Forum Links
Forum 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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:40 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2