apache: using symbolic link to cgi-bin executable: how-to
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
apache: using symbolic link to cgi-bin executable: how-to
hi there,
i have an admin system that allows my client to manage their web site database. i want to give them a nice easy url such as wubbleyou.xxxx.com/admin and so i tried:
1. i added a 'FollowSymLink" into the website root <directory> directive.
2. i added a symbolic link from website_root/admin/index.html to /cgi-bin/entry.pl (the entry page for the admin system).
3. i configured .htaccess to control access to entry.pl on the system.
so...if i go to wubbleyou.xxxx.com/cgi-bin/entry.pl i get the proper challenge from .htaccess and then upon entering password i get a proper exec version of my admin entry page (written in perl).
but...if i go to wubbleyou.xxxx.com/admin i get redirected but the perl file is just displayed (with some odd tabling for some reason) and not executed as though the ExecCGI directive isn't working.
what is the most efficient way of doing what i'm trying (unsuccessfully) to do?
instead of this symlink stuff, you could just put the script at website_root/admin/index.cgi, and then in the web server configuration for this directory do something like this:
* make sure the Options directive has enabled "ExecCGI"
* add the following line: "AddHandler cgi-script .cgi"
thanks for your posts. i was hoping to avoid doing that, but for now i've whacked the whole shebang into the admin folder and changed a few links (should have been relative anyway :-)).
i was kinda hoping just to get it going with a soft link or something but it will have to do for now.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.