View Single Post
  #6  
Old 18th June 2009, 16:23
OvrFlote OvrFlote is offline
Junior Member
 
Join Date: May 2009
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Nevermind

Ok so this is what I did to fix the issue, hope this helps some other fellow linux newbs.

cd /etc/apache2

vi listen.conf

delete the # in front of "NamedVirtualHost *:80"

==========================================
# Use name-based virtual hosting
#
# - on a specified address / port:
#
#NameVirtualHost 12.34.56.78:80
#
# - name-based virtual hosting:
#
NameVirtualHost *:80
#
# - on all addresses and ports. This is your best bet when you are on
# dynamically assigned IP addresses:
#
#NameVirtualHost *
===============================================

Then,

cd vhosts.d
cp vhost.template YourDomain1.com.conf
cp vhost.template YourDomain2.com.conf
vi YourDomain1.com.conf

Now, you need to replace all the "dummy-site.com's" with YourDomain1.com, but that is it, do not uncomment anything unless you know what you are doing.

vi YourDomain2.com.conf

Now, you need to replace all the "dummy-site.com's" with YourDomain2.com, but that is it, do not uncomment anything unless you know what you are doing.

Finally, restart apache

/etc/init.d/apache2 restart

you should see

Syntax OK
Shutting down httpd2 (waiting for all children to terminate) [my wife hates that terminology, lol]
Starting httpd2 (prefork)

there should not be anymore overlapping errors.

this is my own newb strategy and it worked for me, I now have two sites running on one server with one ip.

My setup is the perfect server opensuse 11.1 ispconfig 3 [thank you sourceforge]

my question is, why doesn't ispconfig 3 do this automatically??

Anyway, hope this helps someone. thanks again everyone.

Last edited by OvrFlote; 18th June 2009 at 16:28.
Reply With Quote