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

how to access vhost on w32

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Apache Directives  
Author Message
jwp

External


Since: Dec 13, 2003
Posts: 1



(Msg. 1) Posted: Sun Dec 14, 2003 2:28 am
Post subject: how to access vhost on w32
Archived from groups: alt>apache>configuration (more info?)

I have setup up the following vhost:


Listen 8081

### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on
your
# machine you can setup VirtualHost containers for them. Most
configurations
# use only name-based virtual hosts so the server doesn't need to worry
about
# IP addresses. This is indicated by the asterisks in the directives
below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs-2.0/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

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

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost *:8081>
ServerAdmin jwp.DeleteThis@ont.com
DocumentRoot c:/web/gjwpp.com
ServerName www.gjwpp.com
ErrorLog c:/web/logs/gjwpp.com-error_log
CustomLog c:/web/logs/gjwpp.com-access_log common
</VirtualHost>



I am trting to acces my vhost by:

http://gjwpp.com:8081/index.html

But I am not getting any where. What I am I doing wrong?

Thanks,

Jerry

 >> Stay informed about: how to access vhost on w32 
Back to top
Login to vote
user2595

External


Since: Dec 10, 2003
Posts: 16



(Msg. 2) Posted: Mon Dec 15, 2003 4:58 am
Post subject: Re: how to access vhost on w32 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

<a style='text-decoration: underline;' href="http://gjwpp.com:8081/index.html" target="_blank">http://gjwpp.com:8081/index.html</a>

You gave the vhost ServerName <a style='text-decoration: underline;' href="http://www.gjwpp.com" target="_blank">www.gjwpp.com</a> yet you do not use this address
when trying to open the page. I suggest you try opening
<a style='text-decoration: underline;' href="http://www.gjwpp.com:8081/index.html" target="_blank">http://www.gjwpp.com:8081/index.html</a> instead of
<a style='text-decoration: underline;' href="http://gjwpp.com:8081/index.html" target="_blank">http://gjwpp.com:8081/index.html</a> or change your ServerName <a style='text-decoration: underline;' href="http://www.gjwpp.com" target="_blank">www.gjwpp.com</a>
to ServerName gjwpp.com





"Jerry Preston" <jwp DeleteThis @ont.com> wrote in message
news:Xns9450B1CBDBAAAjwpontcom@216.168.3.44...
 > I have setup up the following vhost:
 >
 >
 > Listen 8081
 >
 > ### Section 3: Virtual Hosts
 > #
 > # VirtualHost: If you want to maintain multiple domains/hostnames on
 > your
 > # machine you can setup VirtualHost containers for them. Most
 > configurations
 > # use only name-based virtual hosts so the server doesn't need to worry
 > about
 > # IP addresses. This is indicated by the asterisks in the directives
 > below.
 > #
 > # Please see the documentation at
 > # <URL:http://httpd.apache.org/docs-2.0/vhosts/>
 > # for further details before you try to setup virtual hosts.
 > #
 > # You may use the command line option '-S' to verify your virtual host
 > # configuration.
 >
 > #
 > # Use name-based virtual hosting.
 > #
 > NameVirtualHost *:8081
 >
 > #
 > # VirtualHost example:
 > # Almost any Apache directive may go into a VirtualHost container.
 > # The first VirtualHost section is used for requests without a known
 > # server name.
 > #
 > <VirtualHost *:8081>
 > ServerAdmin jwp DeleteThis @ont.com
 > DocumentRoot c:/web/gjwpp.com
<font color=purple> > ServerName <a style='text-decoration: underline;' href="http://www.gjwpp.com</font" target="_blank">www.gjwpp.com</font</a>>
 > ErrorLog c:/web/logs/gjwpp.com-error_log
 > CustomLog c:/web/logs/gjwpp.com-access_log common
 > </VirtualHost>
 >
 >
 >
 > I am trting to acces my vhost by:
 >
<font color=purple> > <a style='text-decoration: underline;' href="http://gjwpp.com:8081/index.html</font" target="_blank">http://gjwpp.com:8081/index.html</font</a>>
 >
 > But I am not getting any where. What I am I doing wrong?
 >
 > Thanks,
 >
 > Jerry<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: how to access vhost on w32 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
VHost Q again - Ok I had this working once... then I had to re-install apache and now it doesn't work... well it works, but it all goes to the main page's index file... what am I missing here Do I need to comment out the other listen and documentroot to make this work...

CGI vhost - Greetings, I am trying to set up a vhost that will automatically execute a cgi binary and I'm not too sure how to go about it. If I go to the address and add /cgi-bin/<file_name> it works fine, so I know cgi is configured correctly. Also my name...

Stupid Vhost... please help - Before I get yelled at and told that this has been delt with tons of times, I;ve read the manual, I've read all the posts, but I think I'm just missing something here.. and hopefully another set of eyes can pick up what I'm missing... also I had this..

newbie vhost - Hi I was wondering if anyone can help me, Im trying to setup virtualhost my config is <VirtualHost 192.168.1.2> DocumentRoot /www/domain1.com ServerName domain1.com ErrorLog /www/logs/domain1.com-error_log CustomLog /www/logs/domain1.com-access_lo...

vHost Configuration per DB? - Is tat possible? I mean a dynamic Virtual Host, that gets its data (docroot, user, group, serveradmin) from a mysql DB, depending on the requested hostname... This would be GREAT for MASS Hosting... My Apache is very fat and slow with 500 Virtual..
   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 ]