IntelliJ Java IDE
The moose likes Tomcat and the fly likes Getting userDir to work in apache Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "Getting userDir to work in apache" Watch "Getting userDir to work in apache" New topic
Author

Getting userDir to work in apache

Gregg Bolinger
Sheriff

Joined: Jul 11, 2001
Posts: 15040

I know this isn't java related but I am having a problem getting the UserDir to work in apache. I have it set to UserDir /www/public_html and then when I access my web server via http://ethought.com/~gdboling/index.html or http://ethought.com/~gdboling/www/public_html/index.html
It is not working. But the web server is working fine with everything else.
Is there something I am missing?


My Blog | DZone Articles
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 9983

Hi Gregg
The directive you are looking for should be:

From the sample configuration file normally provided with Apache:

If you are using Apache 2.x, you should also ensure that you dont have the UserDir disable directive.
Regards, Andrew


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Gregg Bolinger
Sheriff

Joined: Jul 11, 2001
Posts: 15040

Originally posted by Andrew Monkhouse:
Hi Gregg
If you are using Apache 2.x, you should also ensure that you dont have the UserDir disable directive.

I think this might be my problem. Thanks Andrew, I will let you know...
Gregg Bolinger
Sheriff

Joined: Jul 11, 2001
Posts: 15040

Well, I added the UserDir enabled gdboling and now I am getting a Forbidden: You don't have permissions to access /~gdboling/index.html on this server.
So I added under my UserDir public_html
<directory>
.....
</directory>
To allow access as read only. Basically just had to uncomment thos lines that were already set for me by default.
Any more suggestions?
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 9983

Hi Gregg,
My entire set of directives are:
I have not bothered to uncomment the /home/*/public_html directory settings.
My permissions are:

And this works for me: I can acces my personal web page using the http://192.168.1.1/~andrewm/ address.
What does your error log show at the time you try to access your personal web page?
Regards, Andrew
 
 
subject: Getting userDir to work in apache
 
Threads others viewed
Apacher userdir module
Apache Virtual Host
Apache setup/config.....please help!
Struts Tutorial
Identity of the clone
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com