|
|
|
|
||||||
| alt.apache.configuration Apache web server configuration issues. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 <VirtualHost 127.0.0.1:80> DocumentRoot E:/www/newsite ServerName mynewlocalhost CustomLog logs/sick-internals common <Directory "E:/www/newsite"> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all </Directory> </VirtualHost> but when I put http://mynewlocalhost in my browser I can see anything... what's wrong? thanks! Alex |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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 > > <VirtualHost 127.0.0.1:80> > DocumentRoot E:/www/newsite > ServerName mynewlocalhost > CustomLog logs/sick-internals common > <Directory "E:/www/newsite"> > Options Indexes FollowSymLinks MultiViews > AllowOverride None > Order allow,deny > Allow from all > </Directory> > </VirtualHost> > > 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 =---- |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
On May 28, 1:45 pm, Mark <mtaylor*@*lrim.com> 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 > > > <VirtualHost 127.0.0.1:80> > > DocumentRoot E:/www/newsite > > ServerName mynewlocalhost > > CustomLog logs/sick-internals common > > <Directory "E:/www/newsite"> > > Options Indexes FollowSymLinks MultiViews > > AllowOverride None > > Order allow,deny > > Allow from all > > </Directory> > > </VirtualHost> > > > 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 <VirtualHost www.something.com> ...... ServerName something.com </VirtualHost> |
|
![]() |
| Outils de la discussion | |
|
|