aspose file tools*
The moose likes Tomcat and the fly likes Getting userDir to work in apache Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
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
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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?


GenRocket - Experts at Building Test Data
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11460
    
  94

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
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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: 11460
    
  94

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting userDir to work in apache