Change the web URL / URI of Ezeelogin Installation
How to change the ezeelogin web URL by removing the /ezlogin suffix?
Overview: This article explains how to change the Ezeelogin web URL to eliminate the /ezlogin suffix from the end of our URL. To achieve this, modify the uri_path, cookie_path, and www_folder variables in the /usr/local/etc/ezlogin/ez.conf file, and then copy the Ezeelogin web files to the desired directory within the web server's document root.
- Ezeelogin web files (blue.css common index.php themes) should be placed under the document root specified in the Apache Virtual Host configuration
- www_folder in the ez.conf must match the DocumentRoot specified in your Apache virtual host configuration
To change the Ezeelogin web URL from
Step 1: Check the Document Root for the virtual host cloudweg.com in the Apache web configuration file.
Document Root /var/www/html/cloudweg.com/
Step 2: Edit /usr/local/etc/ezlogin/ez.conf and make the following changes. Replace the below with the correct details
uri_path /ezlogin
cookie_path /ezlogin
www_folder /var/www/html/ezlogin
TO
uri_path /
cookie_path /
www_folder /var/www/html/cloudweg.com/
Step 3: All the Ezeelogin web files need to be copied from the folder.
Again, if you want to access your Ezeelogin GUI as "http://cloudweg.com/ezlogin", Copy the ezeelogin web files from /var/www/html/cloudweg.com/ to /var/www/html/cloudweg.com/ezlogin/
After copying, edit the following variable in /usr/local/etc/ezlogin/ez.conf
uri_path /ezlogin
cookie_path /ezlogin
www_folder /var/www/html/cloudweg.com/ezlogin
Common errors and troubleshooting:
- The following error appears when accessing https://cloudweg.com in the browser with the wrong configuration setting in apache.
- The following error appears when accessing https://cloudweg.com/ezlogin in the browser with the wrong configuration setting in apache.
Fix: Make sure apache configuration file has correct document root path.
Make sure document root path is either /var/www/html/cloudweg.com or /var/www/html/cloudweg.com/ezlogin
- Example configuration file if the Ezeelogin web files are in /var/www/html/cloudweg.com:
<VirtualHost *:80>
ServerName cloudweg.com
DocumentRoot /var/www/html/cloudweg.com
</VirtualHost>
- Example configuration file if the Ezeelogin web files are in /var/www/html/cloudweg.com/ezlogin:
<VirtualHost *:80>
ServerName cloudweg.com
DocumentRoot /var/www/html/cloudweg.com/ezlogin
</VirtualHost>
Related Articles:
Redirect IP to Domain Name in Linux
Unable to proceed to URL due to invalid certificate error in Chrome