Current time: 07-03-2024, 08:21 PM Hello There, Guest! (LoginRegister)


Post Reply 
alternative url not working.
Author Message
arpoodle Offline
Junior Member
*

Posts: 11
Joined: May 2010
Reputation: 0
Post: #1
alternative url not working.
My ISPCP gui is at controlpanel.domain.com
The alternative URL for clients is showing as vu****.controlpanel.domain.com

Which doens't work.

Have I missed something in the setup?

My /etc/bind/controlpanel.domain.com.db
is as follows:

Quote:$TTL 12H
$ORIGIN controlpanel.domain.com.
@ IN SOA ns1.controlpanel.domain.com. postmaster.controlpanel.domain.com. (
; dmn [controlpanel.domain.com] timestamp entry BEGIN.
2010120600 ; Serial
; dmn [controlpanel.domain.com] timestamp entry END.
8H ; Refresh
15M ; Retry
4W ; Expire
3H ; Minimum TTL
)
IN NS ns1.controlpanel.domain.com.
IN NS ns2.controlpanel.domain.com.
IN MX 10 mailcontrolpanel.domain.com.

controlpanel.domain.com. IN A [external IP]
www IN A [external IP]
controlpanel.domain.com. IN TXT "v=spf1 a mx ip4:[external IP] ip4:[external IP]~all"
localhost IN A 127.0.0.1
mail IN A [external IP]
ns1 IN A [external IP]
ns2 IN A [external IP]
; CNAME for mail transfer
imap IN CNAME mail
pop IN CNAME mail
pop3 IN CNAME mail
relay IN CNAME mail
smtp IN CNAME mail
; CNAME for web transfer
ftp IN CNAME www
; sub [{SUB_NAME}] entry BEGIN.
; sub [{SUB_NAME}] entry END.

; ctm domain als entries BEGIN.
vu2001 IN A [external IP]
vu2002 IN A [external IP]
vu2003 IN A [external IP]
vu2004 IN A [external IP]
vu2005 IN A [external IP]
; ctm domain als entries END.

My /etc/hosts:
Quote:# 'hosts' file configuration.

127.0.0.1 http://www.domain.com.local localhost
[externalIP] domain.com http://www.domain.com domainws01
::ffff:93.93.131.222 http://www.domain.com www
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
/etc/hostname simply has http://www.domain.com

Any hints?
I'm not an expert in DNS as you can probably tell.
tia

a
12-08-2010 09:46 PM
Find all posts by this user Quote this message in a reply
Outbreaker Offline
Junior Member
*

Posts: 14
Joined: Dec 2010
Reputation: 0
Post: #2
RE: alternative url not working.
Same problem here i installed ispCP on a new installed and updated Debian Lenny 64Bit and i installed ispCP exactly like in the Documentation and i got no installation error.

I can also not use the IP like "vu****.89.5XX.X1.59" i get alwas page not found. Sad
12-17-2010 05:40 AM
Find all posts by this user Quote this message in a reply
fluser Offline
Documentation Team
***
Docu Team

Posts: 246
Joined: May 2010
Reputation: 1
Post: #3
RE: alternative url not working.
vu****.89.5XX.X1.59 won't work. Don't connect to your IspCP-interface over the IP-Adress.

Use nslookup for controlling the entries in the DNS-server. Query the IspCP-Server directly and don't query the ISPs DNS Server!

Best Regards
Fluser
12-17-2010 07:07 AM
Find all posts by this user Quote this message in a reply
Outbreaker Offline
Junior Member
*

Posts: 14
Joined: Dec 2010
Reputation: 0
Post: #4
RE: alternative url not working.
I better write what i exactly did.

At my Domain Hoster i added this under "A Records":
Code:
server1      188.4X.1X8.110
*.server1      188.4X.1X8.110

And the Debian "/etc/hosts" file looks like this :
Code:
# 'hosts' file configuration.

127.0.0.1    server1.mydomain.com.local    localhost
188.4X.1X8.110    server1.mmydomain.com    server1
::ffff:188.4X.1X8.110    server1.mydomain.com    server1
::1    ip6-localhost ip6-loopback
fe00::0    ip6-localnet
ff00::0    ip6-mcastprefix
ff02::1    ip6-allnodes
ff02::2    ip6-allrouters
ff02::3    ip6-allhosts

And on the ispCP installation i was asked two times for FQDN one time form MySQL and one time form ispCP and i entered always this:
Code:
server1.mydomain.com

I have no problem to connect to the admin controls panel under the subdomain "http://admin.server1.mydomain.com" but the subdomains from the user account won't work "http://vu2005.server1.mydomain.com" over 30 mintus i get "Internet Explorer cannot display the webpage" and then the ispCP login controls panel will be displayed and not the user start site. Sad
(This post was last modified: 12-17-2010 08:53 AM by Outbreaker.)
12-17-2010 08:14 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #5
RE: alternative url not working.
What do you get if you try to resolve "vuXXX.server1.domain.tld"?
12-17-2010 09:42 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Outbreaker Offline
Junior Member
*

Posts: 14
Joined: Dec 2010
Reputation: 0
Post: #6
RE: alternative url not working.
Resolve: "vuXXX.server1.domain.tld" = "188.4X.1X8.110" (vServer IP)

I really dont get it way it doesn't work i did everything by the books. If someone want to take a better look at this i can PM my root login.
(This post was last modified: 12-17-2010 01:22 PM by Outbreaker.)
12-17-2010 10:40 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #7
RE: alternative url not working.
After a proofreading, I think it should be "vuXXXX.admin.server1.domain.tld" (notice the .admin. part). Does it resolve correctly too? Does it work this way?

Otherwise, can you post the start block of the client's domain VirtualHost from /etc/apache2/ispcp.conf?
12-17-2010 04:54 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Outbreaker Offline
Junior Member
*

Posts: 14
Joined: Dec 2010
Reputation: 0
Post: #8
RE: alternative url not working.
The "vuXXXX.admin.server1.domain.tld" doesn't resolve.
And i can not find the file "/etc/apache2/ispcp.conf" did you mean the file "/etc/apache2/sites-available/ispcp.conf"? if yes then here it is:

Code:
# httpd Data BEGIN.

#
# wget-hack prevention
#

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP_USER_AGENT} ^LWP::Simple
    RewriteRule ^/.* http://%{REMOTE_ADDR}/ [L,E=nolog:1]
</IfModule>

#
# Log processing
#

LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" ispcplog

CustomLog "|/var/www/ispcp/engine/ispcp-apache-logger" ispcplog
ErrorLog "|/var/www/ispcp/engine/ispcp-apache-logger -t error"

#
# mod_cband configuration
#

<IfModule mod_cband.c>
    CBandScoreFlushPeriod 10
    CBandRandomPulse On
</IfModule>

#
# let the customer decide what charset he likes to use
#

AddDefaultCharset Off

#
# Access for errors directory
#

<Directory /var/www/virtual/*/errors>
    Order allow,deny
    Allow from all
</Directory>

#
# Header End
#

# httpd [188.40.178.110] virtual host entry BEGIN.

NameVirtualHost 188.40.178.110:80

# httpd [{DMN_GRP}] dmn group entry BEGIN.
# httpd [{DMN_GRP}] dmn group entry END.
# httpd [mmm.com] dmn group entry BEGIN.

<IfModule mod_cband.c>
    <CBandUser mmm.com>
        # CBandUserLimit 0Mi
        # CBandUserScoreboard /var/www/scoreboards/mmm.com
        # CBandUserPeriod 4W
        # CBandUserPeriodSlice 1W
        # CBandUserExceededURL http://admin.server1.zone54.com/errors/bw_exceeded.html
    </CBandUser>
</IfModule>


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

# httpd [mmm.com] dmn entry BEGIN.
<VirtualHost 188.40.178.110:80>

    <IfModule suexec_module>
           SuexecUserGroup vu2007 vu2007
    </IfModule>

    ServerAdmin     webmaster@mmm.com
    DocumentRoot    /var/www/virtual/mmm.com/htdocs

    ServerName      mmm.com
    ServerAlias     www.mmm.com mmm.com vu2007.admin.server1.zone54.com

    Alias /errors   /var/www/virtual/mmm.com/errors/

    RedirectMatch permanent ^/ftp[\/]?$        http://admin.server1.zone54.com/ftp/
    RedirectMatch permanent ^/pma[\/]?$        http://admin.server1.zone54.com/pma/
    RedirectMatch permanent ^/webmail[\/]?$    http://admin.server1.zone54.com/webmail/
    RedirectMatch permanent ^/ispcp[\/]?$    http://admin.server1.zone54.com/

    ErrorDocument 401 /errors/401.html
    ErrorDocument 403 /errors/403.html
    ErrorDocument 404 /errors/404.html
    ErrorDocument 500 /errors/500.html
    ErrorDocument 503 /errors/503.html

    <IfModule mod_cband.c>
        CBandUser mmm.com
    </IfModule>

    # httpd awstats support BEGIN.

   ProxyRequests Off

   <Proxy *>
      Order deny,allow
      Allow from all
   </Proxy>

   ProxyPass            /stats    http://localhost/stats/mmm.com
   ProxyPassReverse        /stats    http://localhost/stats/mmm.com

    <Location /stats>
        <IfModule mod_rewrite.c>
            RewriteEngine on
            RewriteRule ^(.+)\?config=([^\?\&]+)(.*) $1\?config=mmm.com&$3 [NC,L]
        </IfModule>
        AuthType Basic
        AuthName "Statistics for domain mmm.com"
        AuthUserFile /var/www/virtual/mmm.com/.htpasswd
        AuthGroupFile /var/www/virtual/mmm.com/.htgroup
        Require group statistics
    </Location>

   # httpd awstats support END.

    # httpd dmn entry cgi support BEGIN.
    # httpd dmn entry cgi support END.

    <Directory /var/www/virtual/mmm.com/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>

    # httpd dmn entry PHP2 support BEGIN.
    <IfModule mod_php5.c>
        php_admin_value open_basedir "/var/www/virtual/mmm.com/:/var/www/virtual/mmm.com/phptmp/:/usr/share/php/"
        php_admin_value upload_tmp_dir "/var/www/virtual/mmm.com/phptmp/"
        php_admin_value session.save_path "/var/www/virtual/mmm.com/phptmp/"
        php_admin_value sendmail_path '/usr/sbin/sendmail -f vu2007 -t -i'
    </IfModule>
    <IfModule mod_fastcgi.c>
        ScriptAlias /php5/ /var/www/fcgi/mmm.com/
        <Directory "/var/www/fcgi/mmm.com">
            AllowOverride None
            Options +ExecCGI -MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>
    <IfModule mod_fcgid.c>
        <Directory /var/www/virtual/mmm.com/htdocs>
            FCGIWrapper /var/www/fcgi/mmm.com/php5-fcgi-starter .php
            Options +ExecCGI
        </Directory>
        <Directory "/var/www/fcgi/mmm.com">
            AllowOverride None
            Options +ExecCGI MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>
    # httpd dmn entry PHP2 support END.

    Include /etc/apache2/ispcp/mmm.com.conf

</VirtualHost>
# httpd [mmm.com] dmn entry END.

# httpd [mmm.com] dmn group entry END.

# httpd [zone54.com] dmn group entry BEGIN.

<IfModule mod_cband.c>
    <CBandUser zone54.com>
        # CBandUserLimit 0Mi
        # CBandUserScoreboard /var/www/scoreboards/zone54.com
        # CBandUserPeriod 4W
        # CBandUserPeriodSlice 1W
        # CBandUserExceededURL http://admin.server1.zone54.com/errors/bw_exceeded.html
    </CBandUser>
</IfModule>


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

# httpd [zone54.com] dmn entry BEGIN.
<VirtualHost 188.40.178.110:80>

    <IfModule suexec_module>
           SuexecUserGroup vu2001 vu2001
    </IfModule>

    ServerAdmin     webmaster@zone54.com
    DocumentRoot    /var/www/virtual/zone54.com/htdocs

    ServerName      zone54.com
    ServerAlias     www.zone54.com zone54.com vu2001.admin.server1.zone54.com

    Alias /errors   /var/www/virtual/zone54.com/errors/

    RedirectMatch permanent ^/ftp[\/]?$        http://admin.server1.zone54.com/ftp/
    RedirectMatch permanent ^/pma[\/]?$        http://admin.server1.zone54.com/pma/
    RedirectMatch permanent ^/webmail[\/]?$    http://admin.server1.zone54.com/webmail/
    RedirectMatch permanent ^/ispcp[\/]?$    http://admin.server1.zone54.com/

    ErrorDocument 401 /errors/401.html
    ErrorDocument 403 /errors/403.html
    ErrorDocument 404 /errors/404.html
    ErrorDocument 500 /errors/500.html
    ErrorDocument 503 /errors/503.html

    <IfModule mod_cband.c>
        CBandUser zone54.com
    </IfModule>

    # httpd awstats support BEGIN.

   ProxyRequests Off

   <Proxy *>
      Order deny,allow
      Allow from all
   </Proxy>

   ProxyPass            /stats    http://localhost/stats/zone54.com
   ProxyPassReverse        /stats    http://localhost/stats/zone54.com

    <Location /stats>
        <IfModule mod_rewrite.c>
            RewriteEngine on
            RewriteRule ^(.+)\?config=([^\?\&]+)(.*) $1\?config=zone54.com&$3 [NC,L]
        </IfModule>
        AuthType Basic
        AuthName "Statistics for domain zone54.com"
        AuthUserFile /var/www/virtual/zone54.com/.htpasswd
        AuthGroupFile /var/www/virtual/zone54.com/.htgroup
        Require group statistics
    </Location>

   # httpd awstats support END.

    # httpd dmn entry cgi support BEGIN.
    # httpd dmn entry cgi support END.

    <Directory /var/www/virtual/zone54.com/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>

    # httpd dmn entry PHP2 support BEGIN.
    <IfModule mod_php5.c>
        php_admin_value open_basedir "/var/www/virtual/zone54.com/:/var/www/virtual/zone54.com/phptmp/:/usr/share/php/"
        php_admin_value upload_tmp_dir "/var/www/virtual/zone54.com/phptmp/"
        php_admin_value session.save_path "/var/www/virtual/zone54.com/phptmp/"
        php_admin_value sendmail_path '/usr/sbin/sendmail -f vu2001 -t -i'
    </IfModule>
    <IfModule mod_fastcgi.c>
        ScriptAlias /php5/ /var/www/fcgi/zone54.com/
        <Directory "/var/www/fcgi/zone54.com">
            AllowOverride None
            Options +ExecCGI -MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>
    <IfModule mod_fcgid.c>
        <Directory /var/www/virtual/zone54.com/htdocs>
            FCGIWrapper /var/www/fcgi/zone54.com/php5-fcgi-starter .php
            Options +ExecCGI
        </Directory>
        <Directory "/var/www/fcgi/zone54.com">
            AllowOverride None
            Options +ExecCGI MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>
    # httpd dmn entry PHP2 support END.

    Include /etc/apache2/ispcp/zone54.com.conf

</VirtualHost>
# httpd [zone54.com] dmn entry END.

# httpd [zone54.com] dmn group entry END.


# httpd [{ALS_NAME}] als entry BEGIN.
# httpd [{ALS_NAME}] als entry END.

# httpd [188.40.178.110] virtual host entry END.

# httpd [{IP}] virtual host entry BEGIN.
# httpd [{IP}] virtual host entry END.

# httpd Data END.
(This post was last modified: 12-17-2010 05:32 PM by Outbreaker.)
12-17-2010 05:31 PM
Find all posts by this user Quote this message in a reply
RatS Offline
Project Leader
******

Posts: 1,854
Joined: Oct 2006
Reputation: 17
Post: #9
RE: alternative url not working.
The A-Record must be a full Domain name, and the wildcard dns resolve must be enabled. This function works flawless on my systems so it does not seem to be a bug.
12-17-2010 06:49 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Outbreaker Offline
Junior Member
*

Posts: 14
Joined: Dec 2010
Reputation: 0
Post: #10
RE: alternative url not working.
If my vServer Hostname is:
server1.domain.tld

So i must normally go to my Domain Hoster and add as A-Record this:
server1 <> 188.4X.1X8.110
*.server1 <> 188.4X.1X8.110

What did you add there and in FQDN?
(This post was last modified: 12-17-2010 07:49 PM by Outbreaker.)
12-17-2010 07:48 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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