NetGeek
03-15-2002, 03:37 PM
hi
I have installed Apache/PHP successfuly on my machine for the sole purpose of development. My question is how to make multiple v. hosts off the apache. Just dumping all my projects on subfolders under c:\apache\htdocs is in't any good, is it ?!
Thank u
AA
MikeM
03-15-2002, 08:20 PM
You have to edit the Virtual hosts section of the httpd.conf file to add virtual hosts section.
NetGeek
03-18-2002, 05:00 PM
Thank u Mike.. That was the 1st thing I tried. but the problem what should I use for rher server name, document root (relative or abs.) and IP entries.
AA
zupanm
03-18-2002, 05:35 PM
did you even attempt to read the documentation on the apache website?
NetGeek
03-19-2002, 11:08 AM
hi
I read the documentation coming with the Apache downloads. They said you can't just come up with any name and put it there.. any input ?
TIA
AA
zupanm
03-19-2002, 01:06 PM
i think you need to learn a bit more before you attempt to do this. You just can't add like www.iamcool.com to apache's httpd.conf and expect users to use that.
NetGeek
03-19-2002, 05:45 PM
hi
I am not sure if I stated my question correctly..
My intentions are :
To have a local server( at office, home or my carage) for the purpose of development only not hosting. I want to use it to develope, and test scripts and sites before deploying them. I could have put each project under the main htdocs sub directory on a separate dir and access them this way:
http://localhost/project1/
http://localhost/project2/
.
.
.
But since I am used to the Java Servle/JSP environment I am used to the notation of Web Applications where u dump all ur project files under webapps sub, add the ur application to the conf file and then u can access ur application using :
http://localhost/your_app_name/
though ur files are located here :
%SERVER_PATH%/webapps/your_app_name and ur scripts are little deeper as well :)
So how can I define local VH's that are only accessed on the same machine ? or is it un achivable ?
TIA
AA
microsol
03-19-2002, 06:06 PM
If you use linux then you can create virtual interfaces for your NIC. Let's say your nic ip is 192.168.0.1. Then just assign virtual interfaces 192.168.0.2-10 to NIC1 and you have 10 IP's to play with in your httpd.conf for virtual sites. I am not shure how this works on windowz.
NetGeek
03-20-2002, 12:35 PM
what about 127.0.0.1 can I use it ?! :rolleyes:
AA