Webhosting

Posted by: sinetific

Webhosting - 03/24/02 08:55 AM

Im trying to host my own webpage from my computer using apache on linux and I have a question about cgi-bin. Can I create a cgi-bin anywhere in my /httpd dir? because the current one is a directory below the root directory (index.hmtl) of my current page so to link to it i would need to go backwards. I was thinking about putting in the full path but it didnt work for images so I doubt it would work for cgi. any ideas?
Posted by: Gremelin

Re: Webhosting - 03/24/02 10:28 AM

if you're using apache it will have set a symbolic link. from the web it will show as host.xxx/cgi-bin but for you via ftp or browse it'll show as below your httpd
Posted by: SilentRage

Re: Webhosting - 03/24/02 03:48 PM

Configuration files are good, and you should read them.

In your configuration file you'll find a section for the mod_alias module. This module sets up aliases for your webserver. You'll find several including cgi-bin. Modify to your likings.


ScriptAlias /Displayed/ "C:/Example/"


AllowOverride None
Options None
Order allow,deny
Allow from all


http://www.domain.com/Displayed/
is the same location as:
C:\Example\