Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 12-20-2002, 12:15 PM   #1
LQ Newbie
Registered: Dec 2002
Posts: 1

Rep: Reputation: 0
symbolic link question

I have a virtual domain with two aliased sites, I would like to run cgi scripts from the aliased sites so they look like they are running directly on them. So I set up a symbolic link to the main sites cgi-bin dir. It works except the cgi's wont execute, all I get is 404 errors. Any other file loads fine. Is this possible? am I missing something. Thanks
Old 12-20-2002, 01:49 PM   #2
Registered: Dec 2002
Location: FuNkYToWN
Distribution: SuSe, Gentoo, Fedora
Posts: 64

Rep: Reputation: 15
I believe that you can add an entry for the virtual domain in httpd.conf that will setup the path to cgi-bin for the domain. I'm assuming that you can point it to the sym link, however I don't have time to test this. The entry would look something like this:

ScriptAlias /cgi-bin/ /www/domain/subdir/cgi-bin/
ScriptAlias /cgi-domain/ /www/domain/subdir/cgi-bin/
User domain
Group domaingrp
ErrorDocument 404 /missing.html
DocumentRoot /www/domain/subdirctory
TransferLog logs/eulalas-access-log

Give that a try. It should work properly.
Old 12-20-2002, 01:56 PM   #3
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
I could be wrong here, but you might have to include the ability to follow symbolic links in the cgi-directory directive of your apache config.

I'm not altogether sure it's there by default, but it should look something like this :

Options FollowSymLinks ExecCGI


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
symbolic link question vpv Linux - Newbie 6 10-25-2005 05:02 AM
java symbolic link question MRDucks Mandriva 4 09-26-2005 10:57 PM
symbolic link jsetter Linux - Newbie 4 11-22-2004 08:18 AM
Symbolic link. bulzbb Linux - General 8 03-19-2004 05:57 AM
Symbolic link bwaynej2002 Linux - General 8 08-25-2003 11:06 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:08 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration