Ive come here for help, if possible, because im not sure what else I can do.
Or, even if what im trying to do is possible.
I secured a domain name, and forward all traffic from my domain registrar to my webserver at home by IP.
I have Apache 2.2 set up, with virtual hosting.
from httpd.conf
- Code: Select all
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
from httpd-vhosts.conf
- Code: Select all
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "C:/XAMPP/HTDOCS/"
ServerName [MYHOSTNAME].com
</VirtualHost>
Now, shouldnt the IP address be replaced/resolved by [MYHOSTNAME].com when users are redirected?
Am I doing something wrong here, or is this not working as I'm expecting it to?