virtual host in my local server
am 28.05.2007 22:03:23 von alecoscia
for my local tests I need different servername with different
documentRoot
so I put this lines in my httpd.conf
NameVirtualHost 127.0.0.1
DocumentRoot E:/www/newsite
ServerName mynewlocalhost
CustomLog logs/sick-internals common
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
but when I put http://mynewlocalhost in my browser I can see
anything...
what's wrong?
thanks!
Alex
Re: virtual host in my local server
am 28.05.2007 22:45:42 von mark
alecoscia@gmail.com wrote in news:1180382603.085575.50300
@u30g2000hsc.googlegroups.com:
> for my local tests I need different servername with different
> documentRoot
> so I put this lines in my httpd.conf
>
> NameVirtualHost 127.0.0.1
>
>
> DocumentRoot E:/www/newsite
> ServerName mynewlocalhost
> CustomLog logs/sick-internals common
>
> Options Indexes FollowSymLinks MultiViews
> AllowOverride None
> Order allow,deny
> Allow from all
>
>
>
> but when I put http://mynewlocalhost in my browser I can see
> anything...
> what's wrong?
>
> thanks!
> Alex
>
>
What's wrong is that your computer is trying to resolve "mynewlocalhost"
through DNS. Your fix will be to add the following line in your "hosts"
file.
127.0.0.1 mynewlocalhost
--
----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Re: virtual host in my local server
am 29.05.2007 07:07:01 von kwan
On May 28, 1:45 pm, Mark wrote:
> alecos...@gmail.com wrote in news:1180382603.085575.50300
> @u30g2000hsc.googlegroups.com:
>
>
>
>
>
> > for my local tests I need different servername with different
> > documentRoot
> > so I put this lines in my httpd.conf
>
> > NameVirtualHost 127.0.0.1
>
> >
> > DocumentRoot E:/www/newsite
> > ServerName mynewlocalhost
> > CustomLog logs/sick-internals common
> >
> > Options Indexes FollowSymLinks MultiViews
> > AllowOverride None
> > Order allow,deny
> > Allow from all
> >
> >
>
> > but when I puthttp://mynewlocalhostin my browser I can see
> > anything...
> > what's wrong?
>
> > thanks!
> > Alex
>
> What's wrong is that your computer is trying to resolve "mynewlocalhost"
> through DNS. Your fix will be to add the following line in your "hosts"
> file.
>
> 127.0.0.1 mynewlocalhost
>
> --
>
> ----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----http://www.newsfeeds.comThe #1 Newsgroup Service in the World! 120,000+ Newsgroups
> ----= East and West-Coast Server Farms - Total Privacy via Encryption =----- Hide quoted text -
>
> - Show quoted text -
You are using Windows platform to run your apache, it is better to put
the www.something.com in the VirtualHost directory
......
ServerName something.com