Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hi all, i am Trying to set up a <v

Status
Not open for further replies.

csniffer

Programmer
Apr 30, 2003
161
GB
hi all,
i am Trying to set up a <virtual host> on win XP. I have looked at
and followed the examples but the assumption there is that the server is www. Whatever. My server is called JSTTECH but if anybody types they will go to my home page.

the new website is called . if this is typed then you are taken to the home page of .does anybody know what I am doing wrong
Code:
NameVirtualHost *
#
# 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.
#addstudent.servebeer.com 
<VirtualHost *>
#    ServerAdmin webmaster@dummy-host.example.com
     DocumentRoot &quot;C:/Program Files/Apache Group/Apache2/beer&quot;
     addstudent.servebeer.com 
     ErrorLog logs/beer/com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

thanks


To err is human, to completely mess up takes a computer. [morning]
 
ok now i get only the website2

NameVirtualHost *
#
# 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.
#addstudent.servebeer.com
#<VirtualHost *>
# ServerAdmin webmaster@dummy-host.example.com
DocumentRoot &quot;personal&quot;
servername ErrorLog logs/error.log
UseCanonicalName off
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>

<VirtualHost *>
# ServerAdmin webmaster@dummy-host.example.com
DocumentRoot &quot;beer&quot;
servername ErrorLog logs/error.log
UseCanonicalName Off
# CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

To err is human, to completely mess up takes a computer. [morning]
 
this works but is it correct
Code:
### Section 3: Virtual Hosts

#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
NameVirtualHost *
#
# 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.
#addstudent.servebeer.com 
<VirtualHost *>
#    ServerAdmin webmaster@dummy-host.example.com
#     #ServerName jsttech
DocumentRoot &quot;C:/Program Files/Apache Group/Apache2/personal&quot;
		ServerAlias JSTTECH  
     servername [URL unfurl="true"]www.student2jobs.redirectme.net[/URL]
     ErrorLog logs/error1.log
#	  UseCanonicalName off
#    CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

<VirtualHost *>
#    ServerAdmin webmaster@dummy-host.example.com
     DocumentRoot &quot;C:/Program Files/Apache Group/Apache2/Personal/beer&quot;
     servername [URL unfurl="true"]www.addstudent.servebeer.com[/URL]
     ErrorLog logs/error.log
	  UseCanonicalName On
#    CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

To err is human, to completely mess up takes a computer. [morning]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top