Questions tagged [mod-userdir]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
124 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 ...
0 votes
0 answers
355 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....
  • 109
0 votes
0 answers
38 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 ...
  • 261
0 votes
0 answers
93 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 ...
  • 101
1 vote
1 answer
39 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 ...
  • 41
0 votes
1 answer
82 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 ~...
1 vote
1 answer
433 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 ...
  • 33
0 votes
1 answer
60 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 ...
  • 101
1 vote
1 answer
577 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 ...
0 votes
1 answer
378 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 ...
  • 121
1 vote
1 answer
584 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 ...
  • 11
2 votes
0 answers
239 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. ...
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 ...
1 vote
0 answers
127 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/...
  • 11
0 votes
0 answers
156 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 #...
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?
1 vote
1 answer
601 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 ...
  • 131
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 ...
  • 171
0 votes
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....
  • 1,305
1 vote
1 answer
349 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 ...
  • 43
0 votes
1 answer
631 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: &...
  • 700
0 votes
1 answer
653 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 ...
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 ...
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
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 ...
  • 843
5 votes
2 answers
252 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 ...
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 ...
  • 1,837
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 ...
  • 151