• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Getting userDir to work in apache

 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic