LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


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

Rep: Reputation: 0
Unhappy apache alias problem


Hi,
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
</Directory>

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,
Kaustubh
 
Old 11-05-2004, 05:54 PM   #2
Demonbane
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 http://www.yourdomain.com/UC/ )
or remove all trailing slash from your alias and directory directives:
Code:
Alias /UC "/root/webdir"

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

Original Poster
Rep: Reputation: 0
Hi,
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 strange..is there anything i need to set before using alias or symbolic links?
I appreciate your help.
Kaustubh
 
Old 11-06-2004, 07:58 PM   #4
RHELL
Member
 
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 ?
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:28 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration