Hi I am setting up apache 1.3.19 on our Suse 7.1 server & I am have a problem with mapping ~user to public_html. After creating the public_html directory in the user directory & placing an index page in it. I then try typing in the url http://my.server/~user I get a 403 error, "Forbidden You don't have permission to access /~user on this server". I have a had a lot of experience with IIS but this is the first time I have started to work with Apache. So I know this is something stupid, I just can't put my finger on it. Regards, Jasmine -- Jasmine Davis - Photo Girl www.photo-girl.com -------------------------->> Welcome to Suse Linux 7.1 i686 - Kernel 2.4.2-4 hotgirls login: 9:29am up 3 days, 21:02, 1 user, load average: 0.09, 0.33, 0.40
Hi Jasmine,
shouldn't be a big problem. Check the following:
-Is Apache allowed to read/list the documents in the ~user directories?
-Is there a
Hi
I am setting up apache 1.3.19 on our Suse 7.1 server & I am have a problem with mapping ~user to public_html.
After creating the public_html directory in the user directory & placing an index page in it. I then try typing in the url http://my.server/~user I get a 403 error, "Forbidden You don't have permission to access /~user on this server".
I have a had a lot of experience with IIS but this is the first time I have started to work with Apache. So I know this is something stupid, I just can't put my finger on it.
Regards,
Jasmine
* * Ralf 'coko' Koch * mailto:info@formel4.de * --- Mein Windows ist seit 6 Monaten noch nie abgestürzt. - Ein halbes Jahr ohne Strom - das ist hart.
Hi Ralf I have this entry in my httpd.conf # UserDir: The name of the directory which is appended onto a user's home # directory if a ~user request is received. # <IfModule mod_userdir.c> UserDir public_html </IfModule> I know that Apache has the mod_userdir.c loaded. At one stage as a test, I did change the permissions of the directory to allow everyone to have full access, but this did not make any difference. (dont panic, the server is not online yet). Also the error log shows nothing but the access logs shows this 192.168.1.1 - - [04/Dec/2001:09:33:12 +1100] "GET /~jasmine HTTP/1.1" 403 218 On Tue, 4 Dec 2001 10:09, you wrote:
Hi Jasmine,
shouldn't be a big problem. Check the following: -Is Apache allowed to read/list the documents in the ~user directories? -Is there a
for the user directories in your httpd.conf? -What tells your error_log of this site when you try to access? If you check these you will find the prob in most cases.
Hope that helps,
Ralf
Hi
I am setting up apache 1.3.19 on our Suse 7.1 server & I am have a problem with mapping ~user to public_html.
After creating the public_html directory in the user directory & placing an index page in it. I then try typing in the url http://my.server/~user I get a 403 error, "Forbidden You don't have permission to access /~user on this server".
I have a had a lot of experience with IIS but this is the first time I have started to work with Apache. So I know this is something stupid, I just can't put my finger on it.
Regards,
Jasmine
* * Ralf 'coko' Koch * mailto:info@formel4.de * --- Mein Windows ist seit 6 Monaten noch nie abgestürzt. - Ein halbes Jahr ohne Strom - das ist hart.
-- Jasmine Davis - Photo Girl www.photo-girl.com -------------------------->> Welcome to Suse Linux 7.1 i686 - Kernel 2.4.2-4 hotgirls login: 11:19am up 3 days, 22:52, 1 user, load average: 0.29, 0.23, 0.19
Jasmine Davis wrote,
I am setting up apache 1.3.19 on our Suse 7.1 server & I am have a problem with mapping ~user to public_html.
After creating the public_html directory in the user directory & placing an index page in it. I then try typing in the url http://my.server/~user I get a 403 error, "Forbidden You don't have permission to access /~user on this server".
192.168.1.1 - - [04/Dec/2001:09:33:12 +1100] "GET /~jasmine HTTP/1.1" 403 218
Indexing an Directory is disabled by default, so you can access an empty directory.
- try to access existing files in there.
- or enable Indexing:
At one stage as a test, I did change the permissions of the directory to allow everyone to have full access, but this did not make any difference. If you are not sure about permissions, try "su - wwwrun" as root and cd /home cd user cd public_html if this fails at some stage, the directory permissions are not right. -rwx-----x is enough for apache to work!
hth Markus -- _____________________________ /"\ Markus Gaugusch ICQ 11374583 \ / ASCII Ribbon Campaign markus@gaugusch.at X Against HTML Mail / \
I made a test here, I am not using the /~user/ type of access, so I did not realise I had the same problem.
cd /home cd user cd public_html if this fails at some stage, the directory permissions are not right. -rwx-----x is enough for apache to work!
Just to complete the answer of Marcus. The above access rights must apply both to the /home directory and to the /home/jasmine/ directory, not only to the /./public_html/ directory. Vaclav Brunnhofer ================================================================= ====== | Institute of Entomology e-mail: vbru@entu.cas.cz | | Academy of Sciences of Cz. Rep. phone: +420 38 7775251 | | Branisovska 31 fax: +420 38 5300354 | | 370 05 Ceske Budejovice handy: +420 606 632822 | | Czech Republic | ================================================================= =====
Thank you for this little piece of advice, it worked wonders. My problems are now solved. Thanks again Jasmine On Tue, 4 Dec 2001 18:01, you wrote:
At one stage as a test, I did change the permissions of the directory to allow everyone to have full access, but this did not make any difference.
If you are not sure about permissions, try "su - wwwrun" as root and cd /home cd user cd public_html if this fails at some stage, the directory permissions are not right. -rwx-----x is enough for apache to work!
hth Markus
-- Jasmine Davis - Photo Girl www.photo-girl.com -------------------------->> Welcome to Suse Linux 7.1 i686 - Kernel 2.4.2-4 hotgirls login: 11:43pm up 4 days, 11:16, 1 user, load average: 0.13, 0.50, 0.53
On Monday 03 December 2001 23:09, you wrote:
I get a 403 error, "Forbidden You don't have permission to access /~user on this server".
hi jasmin Ik had the same problems, you need to change the permission settings for the user directory. chmod -R 755 [userdir] should get u the needed persmissions, but i'm not sure if thats actually safe to do..... Goodluck, Shane
On Tue, Dec 04, 2001 at 09:43:28AM +1100, Jasmine Davis wrote:
Hi
I am setting up apache 1.3.19 on our Suse 7.1 server & I am have a problem with mapping ~user to public_html.
After creating the public_html directory in the user directory & placing an index page in it. I then try typing in the url http://my.server/~user I get a 403 error, "Forbidden You don't have permission to access /~user on this server".
There is another pitfall (unlikely, but it comes to my mind). If you request the URL http://my.server/~user instead of http://my.server/~user/ (note the missing trailing slash!) your apache will send a so-called redirection to the same URL _with_ trailing slash. For this to function, you need the ServerName directive to be configured correctly (i.e. to your hostname). On a fresh installation of apache the ServerName directive might contain something like linux.local, which would result in a redirect to the host linux.local, which you won't be able to reach, of course. On a SuSE system, you would probably have run SuSEconfig which modifies the ServerName entry in http.conf according to the fully qualified hostname (which is derived from the FQHOSTNAME variable in /etc/rc.config). But on a host which is a dhcp client, FQHOSTNAME is possibly not set, so this mechanism can't not work! Ergo, also try it with a trailing slash, which is all I wanted to say ;) Peter -- VFS: Busy inodes after unmount. Self-destruct in 5 seconds. Have a nice day...
* Jasmine Davis wrote on Tue, Dec 04, 2001 at 09:43 +1100:
403 error, "Forbidden You don't have permission to access /~user on this server".
Do you have an index.html file world-readable there? oki, Steffen -- Dieses Schreiben wurde maschinell erstellt, es trägt daher weder Unterschrift noch Siegel.
participants (8)
-
dirk.meyer@dinoex.sub.org
-
Jasmine Davis
-
Markus Gaugusch
-
Peter Poeml
-
Ralf Koch
-
shane
-
Steffen Dettmer
-
Vaclav Brunnhofer