Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Lionsanime Directory   Improve your ranking, submit to directories   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 12-16-2004, 04:54 PM   #1 (permalink)
Inactive
 
Join Date: 04-15-04
Location: Out there ...
Posts: 197
iTrader: 0 / 0%
Latest Blog:
None

nextGoal100kVisitors is liked by many
Can you define the same VirtualHost twice in some way?

Can you define the same VirtualHost twice in some way? Let's say that you have something like the following:
Code:
<VirtualHost 12.34.56.78> Command 1 Command 2 Command 3 </VirtualHost>
You can't just put
Code:
<VirtualHost 12.34.56.78> Command 4 Command 5 Command 6 </VirtualHost>
after the first block, but isn't there some way to have two blocks of the same VirtualHost in some way? Does my question make sense?
nextGoal100kVisitors is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 12-16-2004, 10:28 PM   #2 (permalink)
Inactive
 
insitedev's Avatar
 
Join Date: 12-14-04
Posts: 108
iTrader: 0 / 0%
Latest Blog:
None

insitedev is liked by somebodyinsitedev is liked by somebodyinsitedev is liked by somebodyinsitedev is liked by somebody
You can define multiple virtual hosts. Review the following example:

Code:
<VirtualHost *:80> ServerAdmin webmaster@dummy-host.example.com DocumentRoot /www/docs/dummy-host.example.com ServerName dummy-host.example.com ErrorLog logs/dummy-host.example.com-error_log CustomLog logs/dummy-host.example.com-access_log common </VirtualHost> <VirtualHost *:80> ServerAdmin webmaster@dummy-host2.example.com DocumentRoot /www/docs/dummy-host2.example.com ServerName dummy-host2.example.com ErrorLog logs/dummy-host.example2.com-error_log CustomLog logs/dummy-host.example2.com-access_log common </VirtualHost>

The above virtual hosts will direct the HTTP requests (port 80) to the appropriate directory (site) depending on the hostname they used to access it (dummy-host.example.com or dummy-host2.example.com).

Is this what you were looking for?
insitedev is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Define Quality Links cEejay_01 SEO Forum 22 11-02-2007 08:18 PM
Let's Define A Bad Neighborhood.. marthrock SEO Forum 19 10-09-2007 09:07 AM
Define doorway realestate Google Forum 10 08-06-2004 09:00 AM
Define Brand John Scott Marketing Forum 9 10-15-2003 10:17 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 12:06 AM.
© Copyright 2008 V7 Inc