Questions tagged [mod-userdir]
28 questions
5
votes
2 answers
Deny all files in a certain directory using
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 store files that shouldnt be stored in the…
Brad Morris
- 241
- 2
- 12
5
votes
2 answers
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 tried by putting this inside a and…
dentarg
- 151
- 1
- 5
2
votes
0 answers
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.
All work fine :
Users can be authenticated by…
Bruno MACADRE
- 21
- 2
2
votes
2 answers
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 this to work out of http://hostname/~www/…
Jayen
- 1,827
- 3
- 16
- 27
1
vote
1 answer
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 leaving a "UserDir" directive in one of the confs,…
Justin Killen
- 121
- 5
1
vote
1 answer
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 user should be able to publish the content of the…
acid_g
- 11
- 3
1
vote
0 answers
apache2.2: ldap_userdir + mod-rewrite does not work properly
My apache config:
DocumentRoot /var/www
Options FollowSymLinks
AllowOverride None
IndexStyleSheet "/css/style.css"
…
Martin
- 11
- 1
1
vote
1 answer
How to enable mod_userdir for specific user on cpanel?
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
- 117
- 2
- 9
1
vote
1 answer
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
authz_groupfile.load authz_host.load authz_user.load …
Aurimas
- 131
- 5
1
vote
1 answer
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 url: hxxp://hostname/~userN, where N is…
Bonn
- 43
- 1
- 8
1
vote
1 answer
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 error.
I am using this directive:
chinmayv
- 25
- 5
1
vote
2 answers
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 downloaded instead of being executed.
There is…
user51326
1
vote
0 answers
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 have the following configuration in…
Marco Venuti
- 11
- 1
1
vote
1 answer
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 for the URLs to look like…
Mike
- 41
- 2
- 8
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
- 3