From http://httpd.apache.org/docs/2.0/vhosts/name-based.html :
Code:
NameVirtualHost *:80 PS Don't forget to restart apache after changes in its configuration. |
How do you access your new site? http://pedro or http://localhost/pedro?
You might have to setup an entry in /etc/hosts that links pedro to 127.0.0.1 like below. The first line already exists, the second one (in italic red) should be added. Code:
127.0.0.1 localhost |
Hey! Brilliant!!
I already had this in hosts: 127.0.0.1 localhost 127.0.1.1 pedro-bedro and apache said it was on 127.0.1.1 so I entered pedro-bedro, and bam! Thanks for that! Now to see if the php script works! |
Great. Please mark your thread as solved using the thread tools just above the first post on this page.
|
All times are GMT -5. The time now is 11:26 AM. |