Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Virtual hosts

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  IIS 5.0 caching problem not fixed after disable.  
Author Message
spam57

External


Since: Nov 29, 2004
Posts: 12



(Msg. 1) Posted: Mon Apr 25, 2005 7:40 am
Post subject: Virtual hosts
Archived from groups: alt>apache>configuration (more info?)

I have used the examples in apache docs and from various web sites on the
web (Google search) to set virtual hosts to no avail.

Presently I have:

#
#Use name-based virtual hosting.
#
NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot C:/www/Apache2/htdocs/dreammaster
ServerName www.dreammaster.info
ServerAlias dreammaster.info dreammaster
ErrorLog logs/dreammaster.log
</VirtualHost>

<VirtualHost *:80>
DocumentRoot C:/www/Apache2/htdocs/owlnet
ServerName www.owlnet.net
ServerAlias owlnet.net owlnet
ErrorLog logs/owlnet.log
</VirtualHost>

The path to htdocs is set correctly. I can connect using 127.0.0.1 to get to
the apache test/start page ok.

The document roots are set correctly in the above.

The path to htdocs is: C:\www\Apache2\htdocs

Can someone tell me ehat I have done wrong here as I can not access either
site.

Thanks

 >> Stay informed about: Virtual hosts 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Mon Apr 25, 2005 12:55 pm
Post subject: Re: Virtual hosts [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

This message is not archived

 >> Stay informed about: Virtual hosts 
Back to top
Login to vote
spam57

External


Since: Nov 29, 2004
Posts: 12



(Msg. 3) Posted: Mon Apr 25, 2005 7:05 pm
Post subject: Re: Virtual hosts [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Davide Bianchi" <davideyeahsure RemoveThis @onlyforfun.net> wrote in message
news:slrnd6q59p.12a.davideyeahsure@fogg.onlyforfun.net...
 > On 2005-04-25, Gary <spam RemoveThis @spamcop.net> wrote:
  >> ErrorLog logs/dreammaster.log
 >
 > The errorlog should report the complete path of the file.

OK, thank you!

  >> The path to htdocs is set correctly. I can connect using 127.0.0.1 to get
  >> to
  >> the apache test/start page ok.
 >
 > This is already wrong, when you enable VirtualHost the 'default' is
 > to give you the first VHost defined, if going to 127.0.0.1 brings you the
 > test page, it means that is not reading your Virtual Host definition.

Sad

  >> Can someone tell me ehat I have done wrong here as I can not access
  >> either
  >> site.
 >
 > Did you restarted Apache after changing the config file?
 > If you run httpd -t what does it says?

I use the command prompt to cd to c:www\apache2\
Then I typed "httpd -t"
It says, "httpd is not recognized as an internal or external command,
operable file, or batch file"

Thanks for the response thus far.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Virtual hosts 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 4) Posted: Tue Apr 26, 2005 7:07 am
Post subject: Re: Virtual hosts [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

This message is not archived
 >> Stay informed about: Virtual hosts 
Back to top
Login to vote
YouCanToo

External


Since: May 20, 2005
Posts: 4



(Msg. 5) Posted: Fri May 20, 2005 1:11 pm
Post subject: Re: Virtual hosts [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Davide Bianchi wrote:
 > On 2005-04-26, Gary <spam DeleteThis @spamcop.net> wrote:
 >
  >>I use the command prompt to cd to c:www\apache2\
 >
 >
 > I've never used Apache on Windows, check the documentation for the
 > equivalent command on Windows of the -t, to Test the configuration
 > file.
 >
 > Davide
 >
if you are using Version 2.xx of Apache then you would use httpd2 -t<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Virtual hosts 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
virtual hosts... need help please - Hi NG. I'm having trouble configuring Apache to run with more than 1 host. I've read the config describtion ofcause but when I try to do what it says I can't seem to get it to work. If anyone could post the changes they have made to their httpd.conf to...

Virtual Hosts - Hi everyone, I am new to apache, so if my question is answered in the groups faq, or on the apache web site, feel free to tell me to f**k off and read there. However I have looked through the manual, and cant find any reference to the issues im having...

Virtual hosts and SSL? - Hello I'm trying to setup this apache 1.3 server for virtual hosts, with ssl. I've got the normal port 80 working, but the SSL is a bit of a mess. If I have the SSL pages in the real part of the server, ie, https://www.example.com/fred/index.htm then....

Virtual Hosts? - I'm wanting to use one IP address to host multiple domains, ie web hosting. I assume that "virtual hosts" are the thin I need to focus on here and is this basically a similar concept to Host Headers in IIS 5.0? I'm running Windows 2000 with Apa...

ssl on named virtual hosts - I've got 2 virtual hosts running on Mandrake 10.0. They run fine except when it comes to ssl. I've of course googled around and found quite a few entries that say it's not possible to do ssl on named vhosts and others that say the contraty. The error....
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]