Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Multiple CGI directories |
|
Author |
|
mellowbob
Joined: 05 Aug 2017 Posts: 1 Location: Canada
|
Posted: Sat 05 Aug '17 18:39 Post subject: Multiple CGI directories |
|
|
Newbie here ... please be kind
Apache 2.4.18 / Ubuntu
I'm trying to do some cgi testing/learning on my local machine. So I have added to my serve-cgi-bin.conf file:
<Directory "/home/.CUT./html/my-cgi-bin/">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Require all granted
</Directory>
Which lets me run cgi stuff in my local space. But, notice I needed to change the name of the directory from "cgi-bin" to "my-cgi-bin" to avoid a conflict with the default /usr/lib/cgi-bin.
I'm worried (needlessly?) that as I write some things I'll need to change the locations of the calls back to cgi-bin if I decide to upload this to my remote server.
I'm sure there is a simple solution? |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Mon 07 Aug '17 20:17 Post subject: |
|
|
Well, unless you have ScriptAlias in global scope and that points to /usr/lib/cgi-bin there should be no need to worry about this.
Even if it does I think you can override it with a ScriptAlias in the vhost scope. |
|
Back to top |
|
|
|
|
|
|