Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 26th January 2011, 12:06
ormente ormente is offline
Junior Member
 
Join Date: Jan 2011
Location: Mācon, France
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with (manual) virtual hosts

Hi !

I'm trying to set-up a bunch of small websites, but don't want to creat each one in ISPconfig. So i created a "container" and put each subsite in a subfolder of the "main" web folder.

So, i create a config file in /etc/apache2/sites-availlable, make a link to it in sites-enabled, and reload apache config. The DNS of each domain (2 external DNS servers, no zone set on my server) are corectly configured with A -> my server IP.

But accessing the sites display the default welcome page ("It works!"), and I can't find where the problem is.

Here is the conf file for one domain (later it will contain several similar vhosts) :

(MYSITE is the site name, located in the web folder of MAINSITE)

Code:
<VirtualHost *:80>
    DocumentRoot /var/www/clients/client4/web13/web/MYSITE

    ServerName MYSITE.com
    ServerAlias www.MYSITE.com
    ServerAdmin webmaster@MYSITE.com

    ErrorLog /var/log/ispconfig/httpd/MAINSITE/error.log
	
    <Directory /var/www/MAINSITE.com/web/MYSITE>
        Options FollowSymLinks
        AllowOverride Indexes AuthConfig Limit FileInfo
        Order allow,deny
        Allow from all
    </Directory>
    <Directory /var/www/clients/client4/web13/web/MYSITE>
        Options FollowSymLinks
        AllowOverride Indexes AuthConfig Limit FileInfo
        Order allow,deny
        Allow from all
    </Directory>
    
    # suexec enabled
    SuexecUserGroup web13 client4
    # suphp enabled
    <Directory /var/www/clients/client4/web13/web/MYSITE>
        suPHP_Engine on
        # suPHP_UserGroup web13 client4
        AddHandler x-httpd-suphp .php .php3 .php4 .php5
        suPHP_AddHandler x-httpd-suphp
    </Directory>
    
</VirtualHost>
When i reload apache config, everything seems fine : no error, except if i introduce a syntax error in the conf file, showing that it is effectively loaded and parsed. No error, but doing nothing visible !

If I declare MYSITE in ISPconfig as an alias of MAINSITE, everything work as exepcted : MYSITE.COM display MAINSITE.COM (this is not what i want to do).

Anybody have a clue ?

Great thanks !

Last edited by ormente; 26th January 2011 at 12:31.
Reply With Quote
Sponsored Links
 

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
Virtual Hosts SSL 443 DaddyFix Installation/Configuration 16 9th May 2012 19:51
[WARM] 443 Has No Virtual Hosts makensy13 Installation/Configuration 3 3rd January 2011 14:03
BIG Problem Postfix issue admins Installation/Configuration 11 13th November 2009 10:05
Fedora 11, ISPconfig and virtual hosts robyoko Installation/Configuration 9 23rd September 2009 18:09
postfix config jmroth Installation/Configuration 6 18th September 2005 15:58


All times are GMT +2. The time now is 13:30.


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