Link to home
Start Free TrialLog in
Avatar of D4Ly
D4Ly

asked on

Config help

With the following in my config for my local server, why can't i access each at http://gamepts, http://mysql-l.com, etc... and can only view http://127.0.0.1 as the gamepts host?

NameVirtualHost 127.0.0.1:80

<VirtualHost 127.0.0.1:80>
   setEnv RAILS_ENV development
   ServerName gamepts
   ServerAlias gamepts
   DocumentRoot /windows/W/rails/gamepts/public/
   ErrorLog /windows/W/rails/gamepts/apache.log

   <Directory /windows/W/rails/gamepts/public/>
      Options ExecCGI FollowSymLinks
      AddHandler cgi-script .cgi
      AllowOverride all
      Order allow,deny
      Allow from all
   </Directory>
</VirtualHost>

<VirtualHost 127.0.0.1:80>
      ServerName mysql-l.com
      ServerAdmin jason@d4ly.com
      ServerAlias mysql-l.com *.mysql-l.com
      ErrorLog /var/log/apache2/mysql-error_log
      DocumentRoot /windows/W/Hosting/phpMyAdmin
</VirtualHost>
<VirtualHost 127.0.0.1:80>
      ServerName d4ly-l.com
      ServerAdmin jason@d4ly.com
      ServerAlias d4ly-l.com *.d4ly-l.com
      ErrorLog /var/log/apache2/d4ly-error_log
      DocumentRoot /windows/W/Hosting/web/d4ly
</VirtualHost>
<VirtualHost 127.0.0.1:80>
      ServerName omchairworld-l.com
      ServerAdmin jason@d4ly.com
      ServerAlias local-omc.com *.local-omccom
      ErrorLog /var/log/apache2/omc-error_log
      DocumentRoot /windows/W/Hosting/web/omc
</VirtualHost>
ASKER CERTIFIED SOLUTION
Avatar of bimal_linux
bimal_linux

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 D4Ly
D4Ly

ASKER

Hi bimal_linux-

I did

$ping omchairworld-l.com

and get

ping: unknown host omchairworld-l.com

and also get the same response for

$ping gamepts

What am I looking for when you say hosts file, and what changes am I making? Thanks!!
Avatar of D4Ly

ASKER

btw, I'm using linux.
Avatar of D4Ly

ASKER

/etc/hosts

I'm all set, thanks :)