Can someone tell if I can create VirtualHosts on my testserver? I access the testserver by the usual 'http://localhost'.
If i can, how do I do it?
/Grodan :)
Your webserver is accessible by your colleagues boss what have you for every one on you network.
Eg. you can send out a mail saying
"for the latest version of my gumph take a look at
[yourmachine:81...]
And then continue coding on port 82 etc..
So, I'd like to contribute ... for the next person that may come along.
Note: in my case instead of localhost I have "sodium" as my computer name.
In "Hosts" file (located in C:\Windows):
127.0.0.1 localhost
127.0.0.1 sodium
127.0.0.1 dev.sodium <-- I added
In httpd.conf file:
NameVirtualHost *
<VirtualHost *>
DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs"
ServerName sodium
</VirtualHost>
<VirtualHost *>
ServerAdmin webmaster@morton
DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs/manual"
ServerName dev.sodium
ErrorLog logs/dev.sodium.error.log
CustomLog logs/dev.sodium.access.log common
</VirtualHost>