Share your knowledge at the LQ Wiki.
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 03-24-2009, 12:10 PM   #1
LQ Newbie
Registered: Mar 2009
Posts: 5

Rep: Reputation: 0
Apache: Adding access to other non DocumentRoot directories

I'm running Red Hat Enterprise Linux 4.0. I'm configuring the webserver (Apache) to serve directories that are not under the DocumentRoot directory. I've added the following to my httpd.conf:

DirectoryIndex index.html index.php index.htm

Alias /hspice/ "/usr/local/synopsys/current/hspice/hspice/docs_help"
<Directory "/usr/local/synopsys/current/hspice/hspice/docs_help">
Options Indexes FollowSymLinks

AllowOverride None
Allow from all

Order allow,deny

Restarted httpd. Now I can do and I can see all the files in the directory. However, if I do I get 404 Not Found error. Ideally I want to be served from /usr/local/synopsys/current/hspice/hspice/docs_help/index.html

What am I doing wrong? The files under docs_help have 755 permission.
Old 03-24-2009, 12:26 PM   #2
LQ Newbie
Registered: Mar 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Ignore. The problem was with the trailing slash in Alias. Seems to work now.


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
change apache documentroot blizunt7 Linux - Server 7 04-21-2007 11:12 PM
Changing Apache DocumentRoot walterbyrd Linux - Software 1 10-18-2005 03:30 PM
Netjuke: Adding music directories to apache cav Linux - Software 2 02-07-2004 08:43 PM
Can't access non-server-root directories in Apache jenna_h Linux - Networking 13 10-29-2003 06:22 PM
DocumentRoot apache illtbagu Linux - Software 6 02-28-2003 12:04 AM

All times are GMT -5. The time now is 01:49 PM.

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