GIDForums  

Go Back   GIDForums > Web Hosting Forums > Apache Web Server Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rating: Thread Rating: 6 votes, 5.00 average.
  #1  
Old 24-Nov-2003, 20:54
DingbatCA DingbatCA is offline
New Member
 
Join Date: Nov 2003
Posts: 9
DingbatCA is an unknown quantity at this point

Fallowing symbolic links to files.


Just switched my server from RedHat 9 to Gentoo. I am running Apache 2.0.48. I was able to get all services running in Gentoo except Apache. The main part of the Apache web hosting is running but my back doors are not. I can get just fine to localhosts, but I am unable to get to localhosts Foo is a symbolic link that has been placed in my Apache directory (/home/www/html/foo). Foo happens to point at ¡§foo „³ /home/public¡¨. On my old RedHat server, Apache would display the contents of /home/public when I went to localhosts Now all I get is a ¡§You are not authorized to view this page¡¨
Any ideas??
-DingbatCA
  #2  
Old 25-Nov-2003, 02:33
Allowee's Avatar
Allowee Allowee is offline
Regular Member
 
Join Date: May 2003
Location: The Netherlands
Posts: 339
Allowee has a spectacular aura about
I had the same problem my self, fixed it with this:

Code:
<Directory /home/www/html> Options SymLinksIfOwnerMatch </Directory>

If that doesn't work you can try removing the "IfOwnerMatch" part

atleast that worked for me
__________________
Pastebin
PHP Documentation Site
Allowee's Blog http://allowee.net
  #3  
Old 25-Nov-2003, 09:28
DingbatCA DingbatCA is offline
New Member
 
Join Date: Nov 2003
Posts: 9
DingbatCA is an unknown quantity at this point

No luck


Currently i have a test link set up going from /homw/www/html to /tmp. I figured every one could get to tmp. I still get the "You are not authorized to view this page" in IE or "forbidden" in Konqueror. I placed the
<Directory /home/www/html>
Options SymLinksIfOwnerMatch
</Directory>
in my apache2.conf file and had no luck. Any other ideas??
  #4  
Old 25-Nov-2003, 10:27
Allowee's Avatar
Allowee Allowee is offline
Regular Member
 
Join Date: May 2003
Location: The Netherlands
Posts: 339
Allowee has a spectacular aura about
I think this will work...
just checked the docs

Code:
<Directory /home/www/html> Options FollowSymLinks </Directory>

it might not work with /tmp as it is owned by root
__________________
Pastebin
PHP Documentation Site
Allowee's Blog http://allowee.net
  #5  
Old 25-Nov-2003, 10:34
DingbatCA DingbatCA is offline
New Member
 
Join Date: Nov 2003
Posts: 9
DingbatCA is an unknown quantity at this point

No luck.


I added the values to apache2.conf, restarted apache, and made a new symlink to /home/public. Changed the owner to me, not root. same problem. Any other ideas??
  #6  
Old 25-Nov-2003, 10:45
Allowee's Avatar
Allowee Allowee is offline
Regular Member
 
Join Date: May 2003
Location: The Netherlands
Posts: 339
Allowee has a spectacular aura about
hmmm...

and what if you just do
Options All

and if that doesn't work you might want to check if your symlinks are actually working.

I've tested all those options on my box (Debian, apache 1.3.29) and it works fine
__________________
Pastebin
PHP Documentation Site
Allowee's Blog http://allowee.net
  #7  
Old 25-Nov-2003, 10:53
DingbatCA DingbatCA is offline
New Member
 
Join Date: Nov 2003
Posts: 9
DingbatCA is an unknown quantity at this point
I have my symlinks running just fine in apache 1.3. its with apache 2.0.48 that i am having problems; even with the "All" option.
Thats it! Im done fighting with this. downgrading to apache 1.3.29
 
 

Recent GIDBlogDeveloping GUIs with wxPython (Part 2) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
gxx linker accepts only 7 object files danielxs66 C++ Forum 1 12-Dec-2003 09:27

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 18:07.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.