Non-www not accessible can't figure it out

3 posts / 0 new
Last post
#1 Sun, 04/12/2015 - 12:19
uniqbuy

Non-www not accessible can't figure it out

This is odd as it is only happening on 1 VPS. The other one works normally. I have compared the configurations and they seem to be the same.

This is the relevant parts of Virtualhost in httpd.conf

ServerName ub-electronic-cigarette.co.uk ServerAlias www.ub-electronic-cigarette.co.uk ServerAlias webmail.ub-electronic-cigarette.co.uk ServerAlias admin.ub-electronic-cigarette.co.uk DocumentRoot /home/ub-electronic-cigarette/public_html ErrorLog /var/log/virtualmin/ub-electronic-cigarette.co.uk_error_log CustomLog /var/log/virtualmin/ub-electronic-cigarette.co.uk_access_log combined ScriptAlias /cgi-bin/ /home/ub-electronic-cigarette/cgi-bin/ ScriptAlias /awstats/ /home/ub-electronic-cigarette/cgi-bin/ DirectoryIndex index.html index.htm index.php index.php4 index.php5 Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI allow from all AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch Require all granted AddType application/x-httpd-php .php AddHandler fcgid-script .php AddHandler fcgid-script .php5 FCGIWrapper /home/ub-electronic-cigarette/fcgi-bin/php5.fcgi .php FCGIWrapper /home/ub-electronic-cigarette/fcgi-bin/php5.fcgi .php5 allow from all AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch Require all granted RewriteEngine on RewriteCond %{HTTP_HOST} =webmail.ub-electronic-cigarette.co.uk RewriteRule ^(.) https://ub-electronic-cigarette.co.uk:20000/ [R] RewriteCond %{HTTP_HOST} =admin.ub-electronic-cigarette.co.uk RewriteRule ^(.) https://ub-electronic-cigarette.co.uk:10000/ [R] RemoveHandler .php RemoveHandler .php5 php_admin_value engine Off IPCCommTimeout 91 FcgidMaxRequestLen 1073741824

DNS Records

$ttl 38400 @ IN SOA server1.ubvps.co.uk. root.server1.ubvps.co.uk. ( 1428851197 10800 3600 604800 38400 ) @ IN NS server1.ubvps.co.uk. ub-electronic-cigarette.co.uk. IN A 95.154.203.103 www.ub-electronic-cigarette.co.uk. IN A 95.154.203.103 ftp.ub-electronic-cigarette.co.uk. IN A 95.154.203.103 m.ub-electronic-cigarette.co.uk. IN A 95.154.203.103 localhost.ub-electronic-cigarette.co.uk. IN A 127.0.0.1 webmail.ub-electronic-cigarette.co.uk. IN A 95.154.203.103 admin.ub-electronic-cigarette.co.uk. IN A 95.154.203.103 mail.ub-electronic-cigarette.co.uk. IN A 95.154.203.103 ub-electronic-cigarette.co.uk. IN MX 5 mail.ub-electronic-cigarette.co.uk. ub-electronic-cigarette.co.uk. IN TXT "v=spf1 a mx a:ub-electronic-cigarette.co.uk ip4:95.154.203.103 ?all"

I am probably missing something basic. Any help would be great.

Sun, 04/12/2015 - 13:24
Diabolico
Diabolico's picture

I can open the URL you posted but checking your DNS there is a lot of errors: http://www.intodns.com/ub-electronic-cigarette.co.uk.

- I often come to the conclusion that my brain has too many tabs open. -
Failing at desktop publishing & graphic design since 1994.

Sun, 04/12/2015 - 14:04 (Reply to #2)
uniqbuy

That is a firewall issue I am just working on now. I have temporarily disabled the firewall which has fixed most of them. I need to figure out which ports I need to unblock but the more pressing issue is http://ub-electronic-cigarette.co.uk doesn't resolve.

Fixing the firewall seems to have fixed my redirect problem as well.

Topic locked