Questions tagged [mod-userdir]

29 questions
1
vote
1 answer

Apache UserDir protected by LDAP password (don't want a "public_html")

I'm running Apache 2.4.6-93 on a CentOS 7. What I need is: each user should have their own home directory (achieved via UserDir), but the directories need to be password protected. One user should not be able to see another user's directory. I was…
deejah
  • 33
  • 4
0
votes
1 answer

apache userdir jail permissions

On Debian 8 I'm running apache2 in a jailed environment using jailkit and the userdir mod. In current jail setup users can navigate into another users directory i.e /home/jail/home/anotheruser and view files in it but can navigate into folders I…
Lurch
  • 121
  • 3
0
votes
1 answer

Enabling basic auth in apache user directory from Directory context instead of .htaccess file

I've enabled Apache user directories on my Ubuntu server. User can now load their /home/username/public_html directory from the browser by visiting http://example.com/~username. I'm trying to password protect these directories. I was able to get it…
flyingL123
  • 245
  • 4
  • 12
0
votes
0 answers

UserDir is disabled yet server still responds differently to /~root

Using CentOS 6.5 I am trying to completely disable User Dir functionality so that /~ will not work at all. My httpd.config UserDir disabled and #UserDir public_html And also commented out #LoadModule userdir_module modules/mod_userdir.so but…
0
votes
2 answers

HowTo rewrite subdomain to apache userdir

As described in this blog I want to rewrite internally http://xy.user.phpfarm.lan -> http://user.phpfarm.lan/~xy/ Module userdir is enabled. With the following Apache2 vhost config file, it has got a…
Joe Nazz
  • 171
  • 1
  • 2
  • 9
0
votes
1 answer

Apache user_dir module failed

I'm trying to setup user_dir module in my DEVSERVER but gets a 404 Not found error any time I try to reach any URL like for example: http://devserver/~reynierpm/ My userdir.conf file is as follow: UserDir enabled…
ReynierPM
  • 710
  • 5
  • 14
  • 30
0
votes
1 answer

123-reg: Enabling PHP in their Starter package

One of my clients has been with 123-reg for years and wanted to continue to use their hosting. Upon starting a new 'Starter Package' I have been unable to do the simplest thing and enable PHP. The current situation is that any .php file simply…
Rob Forrest
  • 197
  • 4
  • 16
0
votes
2 answers

Using UserDir in Apache why is executable needed on /home/usr?

I'm playing around with the UserDir function in apache: http://httpd.apache.org/docs/2.0/mod/mod_userdir.html Here is my configuration: UserDir enabled user UserDir public_html
Gray Race
  • 853
  • 3
  • 11
  • 22
0
votes
0 answers

NGINX - redirect userdir to another domain

I had an apache virtualhost config that redirects "http://host.domain.com/~userdir" to another host: RewriteRule ^/~(.+) http://anotherhost.domain.com/~$1 [R,L] But I'm having trouble to migrate this config to Nginx. Anyone could help me…
0
votes
0 answers

Home userdir is not working after enabled on Apache2

I'm trying to enable userdir in Apache2 but I only receive a blank page. I used: a2enmod userdir service apache2 restart My conf file /etc/apache2/mods-enabled/userdir.conf UserDir public_html UserDir disabled…
gvd
  • 109
  • 4
0
votes
0 answers

Insecure Apache + mod_userdir configuration

TL;DR: How can I enable mod_userdir in a secure way? (meaning: each user should be able to create and serve their content in ~/public_html but they shouldn't be allowed to read each others content nor directly - cat /home/userX/public_html/file-…
Juanan
  • 301
  • 3
  • 7
0
votes
0 answers

Apache2 mod_userdir+mod_authnz_external, how to limit access to own home

I have an Apache2 setup with mod_userdir and mod_authnz_external+pwauth so that each user can access his home and can be authenticated by his local UNIX credentials. Now I need some kind of authorization so that each user can, after being…
mstud
  • 101
0
votes
1 answer

Rewrite userdir for users that changed the username

This seems simple, but I wasn't able to do it. I have a user that changed his username from givenname to name, and now I need to rewrite, changing the URL on the clients, to avoid 404 errors on ~givenname. I thought I could do something like…
Vinícius Ferrão
  • 5,520
  • 11
  • 55
  • 95
0
votes
1 answer

How to enable HTTPS / Secure access in Apache2 mod_userdir?

I would like to enable users of a test server to be able to host content and access them through HTTPS. However, I'm not going to allow everyone to write to the /var/www. How can I enable the content stored in /home/*/public_html to be accessed with…
Fernando
  • 101
  • 2
1
2