khourykris
asked on
Local PHP web application custom url (NOT rewriting) local.myApp.com on Windows XP and Apache and hosts file
I am on XP, running WAMP 2.0 (apache, php, mysql).
I have an application: MyApplication
Local Location: http://localhost/MyApplication/
I would like to customize the url to be something like this:
local.MyApplication.com
I have modified my "hosts" file in c:\Windows\system32\driver s\etc\host s\ to reflect this using the following:
127.0.0.1/MyApplication/ local.MyApplication.com
1. I restarted WAMP after updating these and nothing.
2. I restarted the computer and nothing.
I tried updating the "httpd-vhosts.conf" but when I uncomment it the "httpd.conf" using the following, I get WAMP errors.
# Virtual hosts
Include conf/extra/httpd-vhosts.co nf
Any ideas?
I have an application: MyApplication
Local Location: http://localhost/MyApplication/
I would like to customize the url to be something like this:
local.MyApplication.com
I have modified my "hosts" file in c:\Windows\system32\driver
127.0.0.1/MyApplication/ local.MyApplication.com
1. I restarted WAMP after updating these and nothing.
2. I restarted the computer and nothing.
I tried updating the "httpd-vhosts.conf" but when I uncomment it the "httpd.conf" using the following, I get WAMP errors.
# Virtual hosts
Include conf/extra/httpd-vhosts.co
Any ideas?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
You Rock, fosiul01!!
hahahah good!
i really didnot know you can do this via /etc/hosts file
i just did this 30 mins ago to check if your concept is right or not, then realized you are 95% right, it does work
learn new things aswell today
i really didnot know you can do this via /etc/hosts file
i just did this 30 mins ago to check if your concept is right or not, then realized you are 95% right, it does work
learn new things aswell today
ASKER
Roads_Roads, thanks for the link as well.
fosiul01, worked perfectly in one try. Thanks it took me a while to solve this.
fosiul01, worked perfectly in one try. Thanks it took me a while to solve this.
http://httpd.apache.org/docs/1.3/vhosts/name-based.html