Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 28th June 2013, 16:46
ergec ergec is offline
Junior Member
 
Join Date: Jun 2013
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default 2 sites points to same folder

I just installed a fresh server following exact same steps with this link

http://www.howtoforge.com/perfect-se...ot-ispconfig-3

everything went flawless and server works fine.

this is a test server under university so I have two domains to test

primary.uni.edu and secondary.uni.edu

I setup server as primary.uni.edu

by default apache runs under /var/www/html and shows my index file properly

I created a site under ispconfig for primary.uni.edu so primary site now works under /var/www/primary.uni.edu -> /var/www/clients/client2/web3/

I put my index file here and yes new setup works fine too

then I created another site for secondary.uni.edu
folder for this is /var/www/secondary.uni.edu -> /var/www/clients/client3/web4/

Problem starts here, new account secondary.uni.edu shows ispconfig standart files using shell, which supposed to display ispconfig default page in browser

but

instead secondary.uni.edu displays primary.uni.edu index file in browser.

what might be the reason?

I never had any problems or tweaks during installation and configuration.
Reply With Quote
Sponsored Links
  #2  
Old 28th June 2013, 17:18
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,704
Thanks: 819
Thanked 5,321 Times in 4,174 Posts
Default

ensure that you dont mix * and IP's in website settings on your server. Either use * for both sites or the Ip for both sites.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 28th June 2013, 20:35
ergec ergec is offline
Junior Member
 
Join Date: Jun 2013
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till View Post
ensure that you dont mix * and IP's in website settings on your server. Either use * for both sites or the Ip for both sites.
tried both * and IP but no luck. btw when I just type IP in browser, same page opens (files under primary) does this mean something?
Reply With Quote
  #4  
Old 29th June 2013, 13:06
ergec ergec is offline
Junior Member
 
Join Date: Jun 2013
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default

now we created a third domain and put and index.html saying "third one" and now all three domains primary secondary and third opens same "third" page

what's going on I've no idea?!?!
Reply With Quote
  #5  
Old 9th July 2013, 20:08
ergec ergec is offline
Junior Member
 
Join Date: Jun 2013
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

Found the solution

edit /etc/httpd/conf/httpd.conf

at the end of the file I commented out these lines having ports

#NameVirtualHost *:80
#NameVirtualHost *:443
Include /etc/httpd/conf/sites-enabled/

then restarted apache. now all sites run under their folder
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
Domain points to nginx root folder instead of /var/www/mydomain/web ijujym Installation/Configuration 2 21st August 2012 16:55
Problem while update MichalCerny Installation/Configuration 11 27th July 2012 12:37
One of the sites not linking to the folder itsimon General 12 5th June 2008 22:45
Default folder for new sites... brent.stephens Feature Requests 2 2nd June 2007 11:19
Multiple Sites to same folder mphayesuk General 1 11th May 2006 11:38


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


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