Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 09-15-2011, 07:13 PM   #1
LQ Newbie
Registered: Sep 2011
Posts: 1

Rep: Reputation: Disabled
Question Newb Apache question. Mapping subdirectory.

I've inherited the maintenance of a file distribution server running Apache 2.2.3. The servers root is currently mapped to an external SAN device at /mnt/sandd2/, and the security on that SAN device doesn't allow any write or execute privs (I can't even create folders on it).

I'm now being asked to make a couple of changes that require a PERL script accessed via Apache (simple web service to generate and return file lists with more detail than the standard Apache index), and need to map /cgi-bin/ to /var/www/cgi-bin/, while maintaining the root at its current location.

So how to I map a subfolder to a location outside of the already-defined website root? I went googling and reading tfm, but all of the documentation I found referred to setting up multiple virtual hosts (which I don't need) and not virtual directories within a single host (which I do need).

I'd appreciate any help, or at least any pointers to the correct documentation, that anyone can provide.
Old 09-15-2011, 10:34 PM   #2
Registered: Sep 2008
Distribution: CentOS
Posts: 75

Rep: Reputation: 16
Adding the following line should do the trick:

ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

More info:


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache question, Kinda newb masenko703 Linux - Server 2 06-01-2009 04:54 AM
403 Error In Subdirectory of Joomla Install (Apache conf newb) 2-tone-joe Linux - Server 1 08-01-2008 11:56 AM
Running .cgi and .pl scripts from any subdirectory in Apache b18b Linux - Networking 8 03-20-2006 02:43 PM
Apache subdirectory problems shane25119 Linux - Software 2 07-13-2005 10:34 AM
newb apache log question spooge Linux - Security 1 03-08-2003 07:14 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:20 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration