#1  
Old 23rd April 2008, 12:56
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default Virtual Hosting

Hi folks,


Ubuntu 6.05.3 drake server amd64
Apache2


I'm prepared testing virtual hosting but I have only one registered domain and one public IP. I will register 2/3 free subdomain for this test. However I'm not going to subscribe additional public IP.


Can I do the test with only one public IP? If YES please advise which document will be relevant for me to follow as a guide. TIA


B.R.
satimis
Reply With Quote
Sponsored Links
  #2  
Old 23rd April 2008, 13:04
zcworld zcworld is offline
Senior Member
 
Join Date: Jul 2006
Location: South Australia
Posts: 329
Thanks: 2
Thanked 37 Times in 37 Posts
Send a message via MSN to zcworld Send a message via Skype™ to zcworld
 
Default

yep u only need one publice IP

heres a quick copy of a friend apache Vhost settings

default.conf

Quote:
<VirtualHost *>
ServerName lala.net
ServerAlias *.lala.net
ServerAdmin ADMIN@EMAIL
DocumentRoot /var/www/vhosts/lala.net/htdocs
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
CustomLog logs/lala.net/access_log combined
ErrorLog logs/lala.net/error_log
php_admin_value open_basedir "/var/www/vhosts/lala.net/htdocs:/var/www/vhosts/lala.net/tmp"
php_admin_value upload_tmp_dir "/var/www/vhosts/lala.net/tmp"
</VirtualHost>
site1.conf


Quote:
<VirtualHost *>
ServerName laughing.lala.net
ServerAdmin ADMIN@EMAIL
DocumentRoot /var/www/vhosts/laughing.lala.net/htdocs
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
CustomLog logs/laughing.lala.net/access_log combined
ErrorLog logs/laughing.lala.net/error_log
php_admin_value open_basedir "/var/www/vhosts/laughing.lala.net/htdocs:/var/www/vhosts/laughing.lala.net/tmp"
php_admin_value upload_tmp_dir "/var/www/vhosts/laughing.lala.net/tmp"
</VirtualHost>

just like that
im / he is using fedora but its like that
__________________
Shane Ebert :: Facebok
Reply With Quote
Reply

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache2 and multiple SSL configs and name based virtual hosting Creator1326 Server Operation 11 5th October 2010 19:28
Virtual Hosting: How do I set this up? VinceDee Installation/Configuration 7 12th December 2006 18:36
SECRUTIY issue with Virtual hosting with Proftpd & Mysql snowfly HOWTO-Related Questions 4 9th July 2006 04:50
Building a virtual hosting structure thim Suggest HOWTO 16 25th June 2006 13:40
postfix config jmroth Installation/Configuration 6 18th September 2005 15:58


All times are GMT +2. The time now is 02:17.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.