CO-Domain problem

Discussion in 'Installation/Configuration' started by DUCKFACE, Aug 6, 2009.

  1. DUCKFACE

    DUCKFACE Banned

    hello
    i have a prob with makeing co-domains
    for now i have sometin.com
    i wanna make it with co-domains like a.sometin.com, b.sometnin.com
    how can i make it with ispconf2?
    i put the co-domain Hostname: a
    domain: sometin.com
    chreate DNS : checked
    forward: /subfolder/

    and it still send me to the shared IP

    what am i doing wrong ?
    thanks
    ________
    MARIJUANA HEMP
    ________
    JEAN TODT
    ________
    Silver Easy Vape Review
     
    Last edited: May 12, 2011
  2. falko

    falko Super Moderator ISPConfig Developer

    What's in Vhosts_ispconfig.conf, and what's the output of
    Code:
    ifconfig
    ?
     
  3. DUCKFACE

    DUCKFACE Banned

    vars

    </IfModule>
    Alias /error/ "/var/www/web4/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /var/www/web4/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web4/user/$1/web/$3
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^a\.sometin\.com [NC]
    RewriteRule ^/(.*)$ http://www.sometin.com/a/index.php$1 [R]
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
    </IfModule>
    </VirtualHost>
    #
    <IfModule mod_ssl.c>
    <VirtualHost 192.168.1.2:443>
    ServerName www.sometin.com:443
    ServerAdmin [email protected]
    DocumentRoot /var/www/web4/web
    ServerAlias sometin.com a.sometin.com
    DirectoryIndex index.html
    Alias /cgi-bin/ /var/www/web4/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    ErrorLog /var/www/web4/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    <Files *.php>
    SetOutputFilter PHP
    SetInputFilter PHP
    </Files>
    <Files *.php3>
    SetOutputFilter PHP
    SetInputFilter PHP
    </Files>
    <Files *.php4>
    SetOutputFilter PHP
    SetInputFilter PHP
    </Files>
    <Files *.php5>
    SetOutputFilter PHP
    SetInputFilter PHP
    </Files>
    php_admin_flag safe_mode On
    <IfModule mod_ruby.c>
    <Directory /var/www/web4/web>
    Options +ExecCGI
    </Directory>
    RubyRequire apache/ruby-run
    #RubySafeLevel 0
    <Files *.rb>
    SetHandler ruby-object
    RubyHandler Apache::RubyRun.instance
    </Files>
    <Files *.rbx>
    SetHandler ruby-object
    RubyHandler Apache::RubyRun.instance
    </Files>
    </IfModule>
    <IfModule mod_python.c>
    <Directory /var/www/web4/web>
    #Options +Indexes +FollowSymLinks +MultiViews
    #AllowOverride Indexes AuthConfig Limit FileInfo
    #Order allow,deny
    #allow from all
    AddHandler mod_python .py
    PythonHandler mod_python.publisher
    PythonDebug On
    </Directory>
    </IfModule>
    SSLEngine on
    SSLCertificateFile /var/www/web4/ssl/www.sometin.com.crt
    SSLCertificateKeyFile /var/www/web4/ssl/www.sometin.com.key
    Alias /error/ "/var/www/web4/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /var/www/web4/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web4/user/$1/web/$3
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^a\.sometin\.com [NC]
    RewriteRule ^/(.*)$ https://www.sometin.com/a/index.php$1 [R]
    SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
    </IfModule>
    </VirtualHost>
    </IfModule>

    **
    ifcongif
    **
    eth0 Link encap:Ethernet HWaddr 00:**:**:**:**:*4
    inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: fe*0::***:f***:f***:7***/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:3514764 errors:0 dropped:0 overruns:0 frame:0
    TX packets:2395152 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:4036803642 (4.0 GB) TX bytes:642856075 (642.8 MB)
    Interrupt:17 Base address:0xa000
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Please post the full contents of the Vhosts_ispconfig.conf file.
     
  5. DUCKFACE

    DUCKFACE Banned

    in the beginin

    ###################################
    #
    # ISPConfig vHost Configuration File
    # Version 1.0
    #
    ###################################
    #
    NameVirtualHost 192.168.1.101:80
    <VirtualHost 192.168.1.101:80>
    ServerName localhost
    ServerAdmin [email protected]
    DocumentRoot /var/www/sharedip
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
    </IfModule>
    </VirtualHost>
    NameVirtualHost 192.168.1.2:80
    <VirtualHost 192.168.1.2:80>
    ServerName localhost
    ServerAdmin [email protected]
    DocumentRoot /var/www/sharedip
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
    </IfModule>
    </VirtualHost>
     
  6. falko

    falko Super Moderator ISPConfig Developer

    That's still not the full file...
     
  7. DUCKFACE

    DUCKFACE Banned

    Last edited: May 12, 2011
  8. DUCKFACE

    DUCKFACE Banned

    humm

    actualy there is "more" but i dont know why it is not in shte first part i posted ... whatever .. here is the beast ...
    <VirtualHost 192.168.1.2:80>
    ServerName www.somethin.com:80
    ServerAdmin [email protected]
    DocumentRoot /var/www/web4/web
    ServerAlias somethin.com a.somethin.com
    DirectoryIndex index.html
    Alias /cgi-bin/ /var/www/web4/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    ErrorLog /var/www/web4/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    <Files *.php>
    SetOutputFilter PHP
    SetInputFilter PHP
    </Files>
    <Files *.php3>
    SetOutputFilter PHP
    SetInputFilter PHP
    </Files>
    <Files *.php4>
    SetOutputFilter PHP
    SetInputFilter PHP
    </Files>
    <Files *.php5>
    SetOutputFilter PHP
    SetInputFilter PHP
    </Files>
    php_admin_flag safe_mode Off
    <IfModule mod_ruby.c>
    <Directory /var/www/web4/web>
    Options +ExecCGI
    </Directory>
    RubyRequire apache/ruby-run
    #RubySafeLevel 0
    <Files *.rb>
    SetHandler ruby-object
    RubyHandler Apache::RubyRun.instance
    </Files>
    <Files *.rbx>
    SetHandler ruby-object
    RubyHandler Apache::RubyRun.instance
    </Files>
    </IfModule>
    <IfModule mod_python.c>
    <Directory /var/www/web4/web>
    #Options +Indexes +FollowSymLinks +MultiViews
    #AllowOverride Indexes AuthConfig Limit FileInfo
    #Order allow,deny
    #allow from all
    AddHandler mod_python .py
    PythonHandler mod_python.publisher
    PythonDebug On
    </Directory>

    and after this is the first post ... :eek:
     
  9. falko

    falko Super Moderator ISPConfig Developer

    And www.somethin.com and somethin.com are working, but a.somethin.com is not?
     
  10. DUCKFACE

    DUCKFACE Banned

    Last edited: May 12, 2011
  11. falko

    falko Super Moderator ISPConfig Developer

    Does the DNS record for a.somethin.com point to the correct IP?
     
  12. DUCKFACE

    DUCKFACE Banned

    falko ...
    how can i send u a beer ?
    do u have the new USB BEER COOLING SYSTEM :D
    the problem was the DNS record ...
    i check it twice .. on ISP record was with the right IP
    in the DNS replication file it was with another ...
    anywhay ..
    the next post gonna be "HOW TO MAKE VIRTUAL IP FOR MULTI HTTPs SITES" :eek:
    ________
    New Mexico Dispensaries
    ________
    Pregnant Latina
    ________
    Child Zoloft
     
    Last edited: May 12, 2011
  13. DUCKFACE

    DUCKFACE Banned

    Last edited: May 12, 2011

Share This Page