LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-24-2009, 12:10 PM   #1
pgbackup
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
</Directory>


Restarted httpd. Now I can do http://xyz.com/hspice/ and I can see all the files in the directory. However, if I do http://xyz.com/hspice/index.html I get 404 Not Found error. Ideally I want http://xyz.com/hspice/ 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
pgbackup
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.
 
  


Reply


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:40 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration