Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-05-2004, 06:41 PM   #1
LQ Newbie
Registered: Nov 2004
Posts: 2

Rep: Reputation: 0
Unhappy apache alias problem

I have a problem with apache alias.
I have following in my httpd.config file
Alias /UC/ "/root/webdir/"

<Directory "/root/webdir/">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all

and yet, when I try to access a file in directory UC, I get following error in log
File does not exist: /usr/local/base/www/UC
/usr/local/base/www is my documentroot ofcourse.

I have tried using UC, UC/ and /UC/ in the alias..none worked.
I have a feeling this is something extremely stupid on my part coz i know this is supposed to work.
I wud really appreciate if anyone cud point where the mistake is.
Thanks a lot,
Old 11-05-2004, 06:54 PM   #2
LQ Guru
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
You either have to add the trailing slash to the URL(eg )
or remove all trailing slash from your alias and directory directives:
Alias /UC "/root/webdir"

<Directory "/root/webdir">
Old 11-06-2004, 05:29 PM   #3
LQ Newbie
Registered: Nov 2004
Posts: 2

Original Poster
Rep: Reputation: 0
It didnt work
I tried accessing the file outside Documentroot using symbolic links also.
But it gives me error symbolic link not allowed even when use the option followSymLinks for the directory.
And this is really there anything i need to set before using alias or symbolic links?
I appreciate your help.
Old 11-06-2004, 08:58 PM   #4
Registered: Feb 2004
Location: Outermost mingetty
Distribution: RHEL3,RH4U4,Sol9, Sol10
Posts: 321

Rep: Reputation: 31
Are the permissions correct on /UC and /root/webdir ?


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 Alias questions xemous Linux - Networking 1 08-21-2005 09:04 AM
Apache Alias isn't working soren625 Linux - Software 3 03-07-2005 05:46 PM
Apache alias / subdirectories problems cavingreer Linux - Software 2 10-18-2004 04:16 PM
Alias directive in Apache 1.3.22 mswebs Linux - Networking 2 08-01-2003 03:09 PM
setting up an alias in apache tarballed Linux - Networking 3 01-31-2003 05:11 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:20 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