#1  
Old 27th March 2013, 14:36
paurosi paurosi is offline
Junior Member
 
Join Date: Mar 2013
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default NameVirtualHosts

Hi everyone

I am new to linux, I recently installed using the how tos open suse12.2 apache2 and Ispconfig 3. Now the installation went fine but now how do i make my namevirtualhosts work every time i try to access a site create in ispconfig admin i am taken to the default site. I had edited my httpd.conf file to have these

Include /etc/apache2/vhosts.d/*.conf
NameVirtualHost *:80
<VirtualHost *:80>
ServerName ibs-kal.bw
ServerAlias www.ibs-kal.bw
DocumentRoot /srv/www/ibs-kal.bw/web
</VirtualHost>


<VirtualHost *:80>
ServerName kal.bw
ServerAlias ww3.kal.bw
DocumentRoot /srv/www/kal.bw/web
</VirtualHost>

But still i cant view the second site, the name server entries are ok only i am always taken to the default site

Can someone please help
Reply With Quote
Sponsored Links
  #2  
Old 27th March 2013, 16:55
dclardy dclardy is offline
Senior Member
 
Join Date: Sep 2009
Location: Dallas, TX
Posts: 347
Thanks: 10
Thanked 50 Times in 28 Posts
Default

Are you creating these sites in the ISPConfig Admin area? You should not have to make these changes to the file s themselves. ISPConfig will create a virtual host configuration for you in /etc/apache2/sites-enabled with the settings that you have set in the admin area.
Reply With Quote
  #3  
Old 28th March 2013, 11:39
paurosi paurosi is offline
Junior Member
 
Join Date: Mar 2013
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default NameVirtualHosts

Thanks Dclardy

I created the sites in ISPconfig 3 and because after loading content I was always being taken to the default website, so I started reading thats why I had to try to make the changes in httpd.conf. All iwant to achieve is to have my sites running ok, what shuld be my next move from here
Reply With Quote
  #4  
Old 28th March 2013, 12:35
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,995
Thanks: 840
Thanked 5,649 Times in 4,459 Posts
 
Default

Quote:
what shuld be my next move from here
Undo all changes you made to httpd.conf as they will prevent the system to work properly.

Then add the IP address of your server in ispconfig under System > server IP and select that IP address in the website settings.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
Problems with Namevirtualhosts and SSL bizkid64 Installation/Configuration 5 12th May 2012 12:40


All times are GMT +2. The time now is 15:41.


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