Link to home
Start Free TrialLog in
Avatar of khourykris
khourykrisFlag for United States of America

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\drivers\etc\hosts\ 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.conf

Any ideas?
Avatar of Lukasz Chmielewski
Lukasz Chmielewski
Flag of Poland image

ASKER CERTIFIED SOLUTION
Avatar of fosiul01
fosiul01
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of khourykris

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
Roads_Roads, thanks for the link as well.

fosiul01, worked perfectly in one try. Thanks it took me a while to solve this.