Questions tagged [mod-userdir]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5 votes
2 answers
6k views

Apache 2 UserDir for only one VirtualHost

Is it possible to enable the UserDir Directive for just one VirtualHost rather than have it on for all and then disable it (with "UserDir disable") for each VirtualHost you don't want it on? I have ...
dentarg's user avatar
  • 151
5 votes
2 answers
254 views

Deny all files in a certain directory using <files>

Im attempting to secure the mod_userdir module in apache.. Currently the directory structure for my users sites is /home/{user}/domains/{domain}/public_html/site The issue is, a number of my users ...
Brad Morris's user avatar
2 votes
2 answers
2k views

django + wsgi + suexec + userdir + apache?

I've got a django 1.1 website I want to run in wsgi (as that seems to be the recommended deployment on apache). I want it to run as the www user (apache is running as www-data). I would ideally like ...
Jayen's user avatar
  • 1,867
2 votes
0 answers
259 views

Apache userdir over Kerberized NFSv4 mount : Forbidden access

I have set up a practical room dedicated to web development learning. Users accounts are managed by a Samba 4 AD and users files are stored in a central NFS server with exports securised by Kerberos. ...
Bruno MACADRE's user avatar
1 vote
1 answer
4k views

How to enable mod_userdir for specific user on cpanel? [closed]

I know that in cPanel/WHM you can allow users to preview their site using http://server_ip/~username Any ideas on how to do this?
hitautodestruct's user avatar
1 vote
1 answer
2k views

Apache userdir with custom url

mod_userdir seems to be able customize where the home folders are, but is there a way to make those available under a custom URL? I want to provide users with a url like the following: http://example....
loopbackbee's user avatar
  • 1,405
1 vote
1 answer
635 views

RewriteRule not working with mod_userdir

My setup: Ubuntu 13.04 Apache/2.2.22 (Ubuntu) PHP 5.4.9-4ubuntu2.2 -- $ ls /etc/apache2/mods-enabled/*.load alias.load auth_basic.load authn_file.load authz_default.load ...
Aurimas's user avatar
  • 131
1 vote
1 answer
356 views

Ubuntu script to add multiple user with apache userdir and mysql username

In Ubuntu 12.04, I'm having difficulties creating a script (since I'm not experienced with it), and is assigned to add multiple users from a list of names in file usernames.txt. The users will have ...
Bonn's user avatar
  • 43
1 vote
2 answers
1k views

PHP files are downloaded, not executed in UserDir on Apache

We're running a webserver using Debian 6.0.3 with Apache 2, we recently upgraded from Debian 5 to 6. Since then php scripts in the user directories (using mod_userdir) have stopped working, they are ...
user avatar
1 vote
0 answers
274 views

Apache mod_userdir and php permissions

I have a setup with many users, who can host their personal webpage (served by apache via mod_userdir), located under public_html in their homes. php support is also enabled in apache. At the moment I ...
Marco Venuti's user avatar
1 vote
1 answer
51 views

Is there a way to configure Apache and mod_userdir to not use ~

I am using Apache 2.4 on RHEL8 to give users there own web pages. Right now the URL looks like example.com/~username. Is there a way to setup Apache and mod_userdir so that the ~ is not used? I'd like ...
Mike's user avatar
  • 41
1 vote
1 answer
528 views

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 ...
deejah's user avatar
  • 33
1 vote
1 answer
637 views

Disable UserDir functtionaility - apache httpd 2.2.29 mod_userdir disabled, but ~ queries still being served

I have a server where I'm trying to disable the ~user behavior. I've forcibly disabled the mod_userdir module by renaming the .so from the modules directory. I confirmed that it doesn't load by ...
Justin Killen's user avatar
1 vote
1 answer
658 views

Apache RewriteRule for each User directory

I have two directories in each of my users' home folders: .html-data and .cgi-bin. The first one contains static (.html) files, the second one contains files for dynamic document generation. Each ...
acid_g's user avatar
  • 11
1 vote
0 answers
132 views

apache2.2: ldap_userdir + mod-rewrite does not work properly

My apache config: DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/...
Martin's user avatar
  • 11
1 vote
1 answer
1k views

NFS mounted userdir in httpd on CentOS

I am using httpd server on CentOS (with SELinux enabled). I want to use UserDir (public_html) If I create the user on local system it works but when I give the path on NFS shared system it gives 404 ...
chinmayv's user avatar
0 votes
2 answers
1k views

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: <IfModule mod_userdir.c> UserDir enabled user ...
Gray Race's user avatar
  • 883
0 votes
1 answer
638 views

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: &...
ReynierPM's user avatar
  • 720
0 votes
1 answer
155 views

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 ~...
Vinícius Ferrão's user avatar
0 votes
1 answer
1k views

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 ...
flyingL123's user avatar
0 votes
1 answer
671 views

123-reg: Enabling PHP in their Starter package [closed]

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 ...
Rob Forrest's user avatar
0 votes
0 answers
41 views

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 ...
Eder Andrade's user avatar
0 votes
0 answers
689 views

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 <IfModule mod_userdir....
gvd's user avatar
  • 109
0 votes
0 answers
63 views

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 ...
Juanan's user avatar
  • 301
0 votes
0 answers
224 views

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 ...
mstud's user avatar
  • 101
0 votes
1 answer
115 views

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 ...
Fernando's user avatar
  • 101
0 votes
1 answer
443 views

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 ...
Lurch's user avatar
  • 121
0 votes
0 answers
191 views

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 #...
user3404205's user avatar
0 votes
2 answers
1k views

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 ...
Joe Nazz's user avatar
  • 171