logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 



Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



Multiple CGI directories

 
Post new topic   Reply to topic    Apache Forum Index -> Apache



View previous topic :: View next topic  
Author Message
mellowbob



Joined: 05 Aug 2017
Posts: 1
Location: Canada

PostPosted: Sat 05 Aug '17 18:39    Post subject: Multiple CGI directories Reply with quote

Newbie here ... please be kind Smile

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: 2101
Location: Sun Diego, USA

PostPosted: Mon 07 Aug '17 20:17    Post subject: Reply with quote

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


Post new topic   Reply to topic    Apache Forum Index -> Apache
Page 1 of 1