Question
How do I use mod_userdir to access sites via IP address and username?
Answer
To access a website using mod_userdir, you must enable this option by following these steps.
- Access the server's command line as the
rootuser via SSH or Terminal in WHM. - Navigate to Home / Security Center / Apache mod_userdir Tweak.
- Select the Enable mod_userdir Protection checkbox.
- Select the DefaultHost (nobody) checkbox in the column Exclude Protection.
- Click the Save button.
Once enabled, you can access the website through a URL with the following format. You must replace the IP with the server IP and the username with the account user.
http://203.0.113.2/~username;
For more information about managing and using this feature, please review the documentation.
Note: This module is not compatible with some PHP Handlers and Apache modules. To use this option, you must ensure these are not configured.
Incompatible PHP Handlers.
- PHP via CGI
- FastCGI
- PHP-FPM
Incompatible Apache modules.
- mod_ruid2
- mod_passenger
Comments
0 comments
Article is closed for comments.