Previous Thread
Next Thread
Print Thread
Rate Thread
#19234 03/24/02 01:55 AM
Joined: Mar 2002
Posts: 815
S
nobody
nobody
S Offline
Joined: Mar 2002
Posts: 815
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?

Sponsored Links
▼ Sponsored Links ▼ ▲ Sponsored Links ▲
#19235 03/24/02 03:28 AM
Joined: Feb 2002
Posts: 7,204
Likes: 11
Community Owner
Community Owner
Joined: Feb 2002
Posts: 7,204
Likes: 11
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


Donate to UGN Security here.
UGN Security, Back of the Web, and VNC Web Services Owner
#19236 03/24/02 08:48 AM
Joined: Mar 2002
Posts: 1,273
DollarDNS Owner
DollarDNS Owner
Joined: Mar 2002
Posts: 1,273
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.

<IfModule mod_alias.c>
ScriptAlias /Displayed/ "C:/Example/"

<Directory "C:/Example/">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
</IfModule>
http://www.domain.com/Displayed/
is the same location as:
C:\Example\


Domain Registration, Hosting, Management
http://www.dollardns.net

Link Copied to Clipboard
Member Spotlight
Gremelin
Gremelin
Portland, OR; USA
Posts: 7,204
Joined: February 2002
Forum Statistics
Forums41
Topics33,839
Posts68,797
Members2,177
Most Online73,244
Nov 9th, 2025
Latest Postings
Top Posters
UGN Security 41,392
Gremelin 7,204
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Top Likes Received
Ghost 2
Girlie 1
unreal 1
Crime 1
Ice 1
Dartur 1
Powered by UBB.threads™ PHP Forum Software 8.0.0