is it possible to configure the wamp server instead of entering the localhos or 127.0.0.1 or the name of computer change the httpd.conf file and entering the name of mywebsite ?
You can use the servername of your site as a dummy domain on the workstation running the WAMP server and also inside the LAN if you add the IP address and the servername to the hosts file \windows\system32\drivers\etc\hosts. On the workstation running WAMP the IP address is 127.0.0.1 and on other workstations in the LAN it is the IP address of the workstation running WAMP.
The format of the entry in hosts is therefore:
127.0.0.1 mywebsitename
- or
192.168.1.1 mywebsitename
If the domain name is found in the hosts file, it gets resolved before a request to the DNS service is made.
I installed wamp server 2.0 and i tried to create a virtual host by un-commenting
# Virtual hosts Include conf/extra/httpd-vhosts.conf
save the file httpd.conf and restart apache. But it wont start, i checked in apache error log file it says
Fri Mar 07 02:23:41 2008] [warn] pid file E:/wamp/bin/apache/apache2.2.6/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Fri Mar 07 02:23:42 2008] [notice] Apache/2.2.6 (Win32) PHP/5.2.5 configured -- resuming normal operations [Fri Mar 07 02:23:42 2008] [notice] Server built: Sep 5 2007 08:58:56 [Fri Mar 07 02:23:42 2008] [notice] Parent: Created child process 2512 [Fri Mar 07 02:23:42 2008] [notice] Child 2512: Child process is running [Fri Mar 07 02:23:42 2008] [notice] Child 2512: Acquired the start mutex. [Fri Mar 07 02:23:42 2008] [notice] Child 2512: Starting 250 worker threads. [Fri Mar 07 02:23:42 2008] [notice] Child 2512: Starting thread to listen on port 80. [Fri Mar 07 02:26:21 2008] [notice] Parent: Received shutdown signal -- Shutting down the server. [Fri Mar 07 02:26:21 2008] [notice] Child 2512: Exit event signaled. Child process is ending. [Fri Mar 07 02:26:22 2008] [notice] Child 2512: Released the start mutex [Fri Mar 07 02:26:23 2008] [notice] Child 2512: Waiting for 250 worker threads to exit. [Fri Mar 07 02:26:23 2008] [notice] Child 2512: All worker threads have exited. Error in my_thread_global_end(): 1 threads didn't exit [Fri Mar 07 02:26:28 2008] [notice] Child 2512: Child process is exiting [Fri Mar 07 02:26:28 2008] [notice] Parent: Child process exited successfully.
If you want to understand the above errors, either you take a course in Operating System and Process or visit the web link: Error log documentation at [httpd.apache.org]
Thanks for your reply, but how can I make apache running??
I want to know that is there any other way of creating a virtual host in wampserver i.e un-commenting the virtual host in httpd.conf, is there any other thing else to be done to make a virtual server ??
omer look like you only like post the question but does not like to read the answer, and I've already answered your question: "Check Setup Virtual Host guide on my personal website" and here is the link