I have a php web application running on the VM. I’m trying to change the domain name from local host to customised name. I did the following changes but still it didn’t work. Please correct/help me what I’m doing wrong/missing here.
- Added website name in etc/hosts file as 127.0.0.1 website-name
- Enabled httpd-vhosts file in httpd file in apache/conf
- Added virtual host tag with required details in httpd-vhosts.conf file
- Restarted apache server After this, if I try to connect to this application with the mentioned domain name in the browser, it shows page cannot display.
I tried the similar process available on internet, not sure where it goes wrong. This on virtual machine running with windows.