Domain falsely redirecting to login panel

  • Hello all,


    Yet another problem (and that before the last one is even solved).
    I'm Using 1.1.0 beta 2 on a fresh debian install.


    I just added a new domain and now when i go to that page i go to the login panel.
    The user has already uploaded all his files and still I keep going to the login panel.


    I also tried rebuilding the config files with ismcp-setup but that didn't fix it.


    Anybody have any possible solutions/tips??


    Also, if more info is needed, just ask.

    Edited once, last by ace ().


  • Delete index and picture Dir before uploading ;)


    Just gave that a try (delete everything in the htdocs folder and than upload a simple test page with just a simple index.html showing hello world). That doesn't solve anything, the problem still exists.


    In the ftp (in the htdocs folder) i uploaded a file called index.html


    If i go to http://domain/index.html I get a 404 file not found error.
    If i go to http://domain i go to the admin panel.


    So it looks like that apache is pointing to a wrong directory for some strange reason.

  • Hello ;


    Sound like a vhost problem. Can you post the domain related vhost file (apache) and ensure that this vhost file is active. Thanks.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206


  • Hello ;


    Sound like a vhost problem. Can you post the domain related vhost file (apache) and ensure that this vhost file is active. Thanks.


    I assume you want the one in sites-enabled?


  • I assume you want the one in sites-enabled?


    Code
    1. <VirtualHost 46.21.174.132:80> <IfModule mpm_itk_module> AssignUserID vu2004 vu2004 </IfModule> <IfModule !mpm_itk_module> <IfModule suexec_module> SuexecUserGroup vu2004 vu2004 </IfModule> </IfModule> ServerAdmin [email protected] DocumentRoot /var/www/virtual/robertdejager.nl/htdocs ServerName robertdejager.nl ServerAlias www.robertdejager.nl robertdejager.nl vu2004.admin.devotee.nl Alias /errors /var/www/virtual/robertdejager.nl/errors/ RedirectMatch permanent ^/ftp[\/]?$ https://admin.devotee.nl/ftp/ RedirectMatch permanent ^/pma[\/]?$ https://admin.devotee.nl/pma/ RedirectMatch permanent ^/webmail[\/]?$ https://admin.devotee.nl/webmail/ RedirectMatch permanent ^/imscp[\/]?$ https://admin.devotee.nl/ 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 vu2004 </IfModule> # SECTION awstats support BEGIN. # SECTION awstats dynamic BEGIN. ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass /stats http://localhost/stats/robertdejager.nl ProxyPassReverse /stats http://localhost/stats/robertdejager.nl <Location /stats> <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^(.+)\?config=([^\?\&]+)(.*) $1\?config=robertdejag$ </IfModule> AuthType Basic AuthName "Statistics for domain robertdejager.nl" AuthUserFile /var/www/virtual/robertdejager.nl/.htpasswd AuthGroupFile /var/www/virtual/robertdejager.nl/.htgroup Require group statistics </Location> # SECTION awstats dynamic END. # SECTION awstats support END. # SECTION cgi support BEGIN. ScriptAlias /cgi-bin/ /var/www/virtual/robertdejager.nl/cgi-bin/ <Directory /var/www/virtual/robertdejager.nl/cgi-bin> AllowOverride AuthConfig #Options ExecCGI Order allow,deny Allow from all </Directory> # SECTION cgi support END. <Directory /var/www/virtual/robertdejager.nl/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> # SECTION php enabled BEGIN. <IfModule fastcgi_module> ScriptAlias /php5/ /var/www/fcgi/robertdejager.nl/ <Directory "/var/www/fcgi/robertdejager.nl"> AllowOverride None Options +ExecCGI -MultiViews -Indexes Order allow,deny Allow from all </Directory> </IfModule> <IfModule fcgid_module> <Directory /var/www/virtual/robertdejager.nl/htdocs> FCGIWrapper /var/www/fcgi/robertdejager.nl/php5-fcgid-starter .$ Options +ExecCGI </Directory> <Directory "/var/www/fcgi/robertdejager.nl"> AllowOverride None Options +ExecCGI MultiViews -Indexes Order allow,deny </Directory> </IfModule> <IfModule php5_module> php_admin_value open_basedir "/var/www/virtual/robertdejager.nl/:/v$ php_admin_value upload_tmp_dir "/var/www/virtual/robertdejager.nl/p$ php_admin_value session.save_path "/var/www/virtual/robertdejager.n$ php_admin_value sendmail_path '/usr/sbin/sendmail -f webmaster@robe$ #Custom values php_admin_value max_execution_time "30" php_admin_value max_input_time "60" php_admin_value memory_limit "128M" php_value error_reporting "E_ALL & ~E_NOTICE" php_value display_errors "Off" php_admin_value post_max_size "10M" php_admin_value upload_max_filesize "10M" php_admin_value allow_url_fopen "Off" </IfModule> # SECTION php enabled END. Include /etc/apache2/imscp/robertdejager.nl.conf</VirtualHost>The one being included at the end is empty.


    And the reason is:


    Your site is associated with the IP address 46.21.174.130 (see your DNS), but in the vhost it's another IP that is used: 46.21.174.132. Apache can not find the site if the IP address is not the same as mentioned in the DNS zone.



    You must fix the IP issue.


    Cheers ;

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

    Edited once, last by Nuxwin ().

  • Ok, found out what happend.
    This person isn't using the dns server on i-mscp but the one from their registrar.


    And that is pointing to the wrong IP. that explains why the addresses differ.

    Edited once, last by ace ().


  • It's easy to fix:


    1. Connect to pma as root user
    2. Retrieve the correct IP id in the server_ips table of the imscp database
    3. Go to the domain table of the imscp database
    4. Update value of the domain_ip_id field with correct ip id
    5. Relaunch the imscp installer script to force regeneration of vhost files

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

    Edited once, last by Nuxwin ().


  • Ok, found out what happend.
    This person isn't using the dns server on i-mscp but the one from their registrar.


    And that is pointing to the wrong IP. that explains why the addresses differ.


    Ha ok so forgot my previous answer and just ask your customer to fix its DNS.


    Cheers;

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

    Edited once, last by Nuxwin ().

  • Ha ok so forgot my previous answer and just ask your customer to fix its DNS.


    Cheers;


    That's exactly what I just did.
    Just needed to be pointed in the right direction.
    Completely forgot the relation between the used IP address and the Vhost ;)


    So as far as i'm concerned this one is solved (because there was nothing wrong with i-mscp).