The earlier domain name that was used on a Apache web server is no longer in use. And so the webserver will be directly referenced by the public IP address. What I need to know is how to reconfigure the webserver for IP based referencing.
Do I need the ServerName directive to have the IP address instead of the domain name?
There are two virtualhosts, one for port 80, and the other for port 443, currently it is configured as,
Should this be changed to
Code:
<Virtualhost Public-IP-Address:80>
?
There are a lot of rewrites directives in the configuration. Can I simply replace the domain names with the IP address?