On Fri, Jul 1, 2011 at 10:04 AM, Suresh Kumar <suresh1876 at gmail.com> wrote:
.....................
?i have created a vhost.conf in the path /etc/httpd/conf.d/vhost.conf.
?here is the contents...
NameVirtualHost *:80
<virtualhost *:80>
? ? ?ServerAdmin admin at gmail.com
? ? ?DocumentRoot /var/www/html/dev_setup/
? ? ?ServerName dev_setup
? ? ?ServerAlias www.dev_setup.com
? </virtualhost>
? <virtualhost *:80>
? ? ?ServerAdmin admin at gmail.com
? ? ?DocumentRoot /var/www/html/cefpress.com/
? ? ?ServerName ?cefpress.com
? ? ?ServerAlias cefpress.com
? </virtualhost>
? <virtualhost *:80>
? ? ?ServerAdmin admin at gmail.com
? ? ?DocumentRoot /var/www/html/dev.bobstores.com/
? ? ?ServerName dev.bobstores.com
? ? ?ServerAlias dev.bobstores.com
? </virtualhost>
and the entries in the /etc/hosts file are ...
127.0.0.1 wks17.isinfotech.com wks17 localhost.localdomain localhost
localhost4
::1 wks17.isinfotech.com wks17 localhost6.localdomain6 localhost6
127.0.0.1 localhost localhost
127.0.0.1 www.dev_setup.com dev_setup
127.0.0.1 www.cefpress.com cefpress.com
127.0.0.1 dev.bobstores.com ? dev.bobstores.com
Now i am able to view the virtual sites, ?as
http://dev_setup/
http://cefpress.com
http://dev.bobstores.com
but not able to view the sites which i create at /var/www/html/
?for example
?if create a new project at mobilesite at /var/www/html/mobilesite
and try to access it as http://localhost/mobilesite/