Current time: 05-19-2024, 03:30 PM Hello There, Guest! (LoginRegister)


Post Reply 
subdomains as accounts
Author Message
Emitor Offline
Junior Member
*

Posts: 15
Joined: Sep 2007
Reputation: 0
Post: #1
subdomains as accounts
Hi.

I need to use subdomains as domain accounts.
I used this howto - http://www.isp-control.net/ispcp/wiki/ho...as_domains

I created new account (subdomain.domain.tld for example)

When i put a subdomain address (something.domain.tld) into my browser i get what is on domain.tld.

Using ispcp RC2c, Debian Etch

i think it is a problem in /etc/apache2/sites-available (-enabled)

ispcp.conf
Code:
# httpd [subdomain.domain.tld] dmn group entry BEGIN.

# httpd [{SUB_NAME}] sub entry BEGIN.
# httpd [{SUB_NAME}] sub entry END.

# httpd [subdomain.domain.tld] dmn entry BEGIN.
<VirtualHost 85.193.53.122:80>

    <IfModule mod_fastcgi.c>
        SuexecUserGroup vu2013 vu2013
    </IfModule>

    ServerAdmin     root@subdomain.domain.tld
    DocumentRoot    /var/www/virtual/subdomain.domain.tld/htdocs

    ServerName      subdomain.domain.tld
    ServerAlias     www.subdomain.domain.tld subdomain.domain.tld

    ErrorLog        /var/log/apache2/users/subdomain.domain.tld-error.log
    TransferLog     /var/log/apache2/users/subdomain.domain.tld-access.log

    CustomLog       /var/log/apache2/subdomain.domain.tld-traf.log traff
    CustomLog       /var/log/apache2/subdomain.domain.tld-combined.log combined

    Alias /errors   /var/www/virtual/subdomain.domain.tld/errors/

    ErrorDocument 401 /errors/401/index.php
    ErrorDocument 403 /errors/403/index.php
    ErrorDocument 404 /errors/404/index.php
    ErrorDocument 500 /errors/500/index.php

    Redirect /stats http://subdomain.domain.tld/awstats/awstats.pl
    Redirect /ispcp http://domain.tld

    # httpd dmn entry cgi support BEGIN.
    ScriptAlias /cgi-bin/ /var/www/virtual/subdomain.domain.tld/cgi-bin/
    <Directory /var/www/virtual/subdomain.domain.tld/cgi-bin>
        AllowOverride None
        #Options ExecCGI
        Order allow,deny
        Allow from all
    </Directory>
    # httpd dmn entry cgi support END.

    <IfModule mod_fastcgi.c>
        ScriptAlias /php4/ /var/www/fcgi/subdomain.domain.tld/
        <Directory "/var/www/fcgi/subdomain.domain.tld">
            AllowOverride None
            Options +ExecCGI -MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>

    <IfModule mod_php4.c>
        <Directory /var/www/ispcp/gui>
            php_admin_value open_basedir "/var/www/ispcp/gui/:/etc/ispcp/:/proc/:/var/www/virtual/:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
            php_admin_value session.save_path "/var/www/ispcp/gui/phptmp/"
        </Directory>
    </IfModule>

    # httpd dmn entry PHP2 support BEGIN.
    <IfModule mod_php4.c>
        php_admin_value open_basedir "/var/www/virtual/subdomain.domain.tld:/var/www/virtual/subdomain.domain.tld/phptmp:/usr/share/php"
        php_admin_value upload_tmp_dir "/var/www/virtual/subdomain.domain.tld/phptmp"
        php_admin_value session.save_path "/var/www/virtual/subdomain.domain.tld/phptmp"
        php_admin_value sendmail_path '/usr/sbin/sendmail -f vu2013 -t -i'
    </IfModule>
    # httpd dmn entry PHP2 support END.

    <Directory /var/www/virtual/subdomain.domain.tld/htdocs>
        # httpd dmn entry PHP support BEGIN.
        # httpd dmn entry PHP support END.
        Options -Indexes Includes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

</VirtualHost>
# httpd [subdomain.domain.tld] dmn entry END.

# httpd [subdomain.domain.tld] dmn group entry END.
(This post was last modified: 10-30-2007 06:25 PM by Emitor.)
10-25-2007 07:13 PM
Find all posts by this user Quote this message in a reply
mata Offline
French Corner Moderator
*****
Moderators

Posts: 71
Joined: Feb 2007
Reputation: 0
Post: #2
RE: Used subdomains as accounts - it does'n work
First of all,
if your in a support area, the problem you have might not work, so adding "it doesnt work" like some kiddy wont get u any further.

second if u read trough some of these threads you might have found the reason for my post.

There is no info what so ever, OS? version ispcp? httpd.conf? some.conf? Smile

maybe some.log ?

Read before u post

TY

Mata

Edit : And plz edit your post, no need for more posts
(This post was last modified: 10-25-2007 07:28 PM by mata.)
10-25-2007 07:26 PM
Visit this user's website Find all posts by this user Quote this message in a reply
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #3
RE: subdomains as accounts
specially the entry for domain.tld in apache's ispcp.conf
10-26-2007 10:00 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)