Enabling mod_userdir question
Hi I'm being told that if I want to view my domains like this 166.**.80.**8/~fred/
I need to do the below.
I am using WHM
- CENTOS 6.9
- v66.0.34
mod_userdir is disabled
Web server processes on this system currently run as the user. For security reasons, the system disabled mod_userdir. Any changes that you make in this interface will not take effect until you enable mod_userdir. To use mod_userdir, you must disable mod_ruid2, mod_itk, and mod_passenger and recompile EasyApache.
Apache"s mod_userdir allows users to view their sites by entering a tilde (~) and their username as the URI on a specific host. For example
-
Web server processes on this system currently run as the user. For security reasons, the system disabled mod_userdir. Any changes that you make in this interface will not take effect until you enable mod_userdir. To use mod_userdir, you must disable mod_ruid2, mod_itk, and mod_passenger and recompile EasyApache.
You will have to disable the mod_ruid2, mod_itk, and mod_passenger apache module first to have this setting enabled. Execute EasyApache on your server and remove it.. For more detailed information visit the below link: Apache mod_userdir Tweak - Version 68 Documentation - cPanel Documentation0 -
Hello, You won't be able to make those changes without root access to the system. Instead, you could consider modifying the hosts file on the individual computers that need to access a domain name before it resolves. EX: How to Modify your hosts File - cPanel Knowledge Base - cPanel Documentation Thank you. 0 -
Are you saying to modify OUR hosts file?????
Yes, modify it on your computer that is what mentioned, so for your computer alone you can check how the domain looks when pointed to your server.. The link provided by Michael has detailed explanation on how to go about modifying it..0 -
Hello @Zardiw, Yes, the instructions on the following document are intended for your own computer (or the computer of anyone that needs to access a domain before the DNS propagates): How to Modify your hosts File - cPanel Knowledge Base - cPanel Documentation This is an alternative to using an Apache Mod_Userdir URL to access a website before the DNS propagates. Thank you. 0 -
However, if I just put the IP address in the browser it should do the same thing right?
Hello @Zardiw, The website contents will only load when browsing to the IP address when it's a dedicated IP address. If the IP address is configured as a shared IP, then it will display the default website page unless you've configured a specific virtual host as the first entry for that IP address in the Apache configuration file. There's a post with instructions on how to do that at: Thank you.0
Please sign in to leave a comment.
Comments
6 comments