Page 1 of 1

Shared Install Error (Good subdomains - BAD parked domains)

Posted: Mon Jan 23, 2006 2:50 pm
by mdnava
Hi... I just finished a shared Serendipity setup, I had to import several Blogs from friends and upgrade from 0.7 -> 0.8.1 -> 0.9.

All Blogs work fine in sub-domains, but one of them has a domain parked which doesn't work with images and relative URLs, like there was Hotlinking enabled, but it ain't.

http://stokmatik.blogab.com/ (works fine)
http://www.stokmatik.com/ (has the issues)

Both are the same thing, I looked over hotlinking, htaccess and I tried also changing the A record for a CNAME record but still doesn't work, Apache has the correct entries, there is NO CACHE enabled at all, the s9y autodetect host option is ON and I already tried OFF.

The weird part (:roll:) of this issue is that I deleted the .htaccess files on the same dir and below and it worked (the domain) as it never happened, all posts showed with rewrite URLs (of course with no images) BUT the sub-domain behaved as I expected: error 404.

Has anyone experienced something like this?...

Re: Shared Install Error (Good subdomains - BAD parked domai

Posted: Mon Jan 23, 2006 2:55 pm
by garvinhicking
Hm, the link to your subdomain is not working at all for me, it does not resolve in DNS.

But the URL you say which has "issues" seems to work all fine for me. Images etc. all are displayed.

Regards,
Garvin

Re: Shared Install Error (Good subdomains - BAD parked domai

Posted: Mon Jan 23, 2006 3:15 pm
by mdnava
garvinhicking wrote:Hm, the link to your subdomain is not working at all for me, it does not resolve in DNS.
To me the domain pointer resolves fine but I do not see the images, the domain has a A Record to the host IP and the pointer is made in on a VirtualHost in Apache, all with Cpanel-WHM. I asked two friends of mine on different ISPs and they can't see the images either... When I put the direct link of any image on the address bar, it shows the default s9y homepage, like when a hotlink protection with redirection is setup.
But the URL you say which has "issues" seems to work all fine for me. Images etc. all are displayed.
That is indeed shocking :S.

Re: Shared Install Error (Good subdomains - BAD parked domai

Posted: Mon Jan 23, 2006 3:19 pm
by garvinhicking
Hm, this sounds to me all like a not yet correctly working DNS plus Apache VirtualHost catching.

When did you update the DNS? Maybe it's not yet propagated completely everywhere. In either case, my DNS doesn't know of the domain yet...

Best regards,
Garvin

DNS changed two hours ago

Posted: Mon Jan 23, 2006 3:23 pm
by mdnava
I updated the DNS yesterday, but I did some changes like two hours ago to rollback a test setup...

But if you can see the domain on your navigator why can't you see it on DNS?... And if you can see the domain why can you see the images and we don't?...

mmm, meditate on this, I will.

Re: DNS changed two hours ago

Posted: Mon Jan 23, 2006 3:29 pm
by garvinhicking
Because of this:

Code: Select all

[15:15:36] garvin@mostlyharmless:~/> ping www.stokmatik.com
PING stokmatik.com (72.29.78.141): 56 data bytes
64 bytes from 72.29.78.141: icmp_seq=0 ttl=53 time=156.6 ms
64 bytes from 72.29.78.141: icmp_seq=1 ttl=53 time=155.8 ms

--- stokmatik.com ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 155.8/156.2/156.6 ms

Code: Select all

[15:14:18] garvin@mostlyharmless:~/> ping stokmatik.blogab.com
ping: unknown host stokmatik.blogab.com
About the images, I thought you refering to the template images -- I did not even notice there was an image within your posting. Calling the URL

Code: Select all

http://www.stokmatik.com/stokmatik/uploads/rome.jpg
Does not show an image for me, that is true. What does your .htaccess file look like? It seems the directory is not existing and thus redirecting.

Regards,
Garvin

Re: DNS changed two hours ago

Posted: Mon Jan 23, 2006 3:48 pm
by mdnava
garvinhicking wrote:Does not show an image for me, that is true. What does your .htaccess file look like? It seems the directory is not existing and thus redirecting.

Code: Select all

http://www.stokmatik.com/stokmatik/uploads/rome.jpg
That URL is fine, it works with the sub-domain but not with the domain, but let me explain:

That blog was part of a different subdomain like http://blogs.maracaibo.org.ve/stokmatik but after I changed to fully featured subdomains I had to create a symbolic link from /uploads to /stokmatik/uploads (full paths of course) to make them work with the new setup, so /uploads/ still contains all media but when some file in /stokmatik/uploads is call be found... It does work, in the subdomain but not on the domain.

The .htaccess file looks like a s9y standard:

Code: Select all

# BEGIN s9y
ErrorDocument 404 /index.php
DirectoryIndex /index.php

RewriteEngine On
RewriteBase /
RewriteRule ^archives([/A-Za-z0-9]+)\.html index.php?url=/archives/$1.html [L,QSA]
RewriteRule ^([0-9]+)[_\-][0-9a-z_\-]*\.html index.php?url=$1-article.html [L,NC,QSA]
RewriteRule ^feeds/(.*) index.php?url=/feeds/$1 [L,QSA]
RewriteRule ^unsubscribe/(.*)/([0-9]+) index.php?url=/unsubscribe/$1/$2 [L,QSA]
RewriteRule ^approve/(.*)/(.*)/([0-9]+) index.php?url=approve/$1/$2/$3 [L,QSA]
RewriteRule ^delete/(.*)/(.*)/([0-9]+) index.php?url=delete/$1/$2/$3 [L,QSA]
RewriteRule ^(admin|entries)(/.+)? index.php?url=admin/ [L,QSA]
RewriteRule ^archive$ index.php?url=/archive [L,QSA]
RewriteRule ^categories/([0-9]+) index.php?url=/categories/$1 [L,QSA]
RewriteRule ^(index|atom|rss|b2rss|b2rdf).(rss|rdf|rss2|xml)$ rss.php?file=$1&ext=$2
RewriteRule ^plugin/(.*) index.php?url=plugin/$1 [L,QSA]
RewriteRule ^search/(.*) index.php?url=/search/$1 [L,QSA]
RewriteRule ^(serendipity\.css|serendipity_admin\.css) index.php?url=/$1 [L,QSA]
RewriteRule ^authors/([0-9]+) index.php?url=/authors/$1 [L,QSA]
RewriteRule ^index\.(html?|php.+) index.php?url=index.html [L,QSA]
RewriteRule ^htmlarea/(.*) htmlarea/$1 [L,QSA]
RewriteRule (.*\.html?) index.php?url=/$1 [L,QSA]

<Files *.tpl>
    deny from all
</Files>

<Files *.sql>
    deny from all
</Files>

<Files *.inc.php>
    deny from all
</Files>

<Files *.db>
    deny from all
</Files>

# END s9y

Re: DNS changed two hours ago

Posted: Mon Jan 23, 2006 4:13 pm
by garvinhicking
Try to temporarily remove the "ErrorDocument" directive in your htaccess.

You should then get a 404 error about the image file. Now, I think that your apache may not be privileged to read the symbolic link? Did you check your vhost contain if it contains "Options SymLinks" or "Options All" for the s9y directory?

Regards,
Garvin

Problem solved!!!

Posted: Mon Jan 23, 2006 4:19 pm
by mdnava
Garvin, you were right at the end, there was a mess with the Apache configuration... :shock:

The DNS were okay and the Apache config also was okay in fact, but there was an existent entry for that domain (parked) on another account that appeared to be the cause of the problem even tho I did deleted that weeks ago, that's the thing I don't like about most of the WYSIWYG and automated stuff, I never get exactly what I want.

I just deleted everything I found about that domain and subdomain on the BIND and APACHE config files and started from scratch... It works now!!

Have a nice day :D

Re: Problem solved!!!

Posted: Mon Jan 23, 2006 5:18 pm
by mdnava
Ehmm, when I said "WYSIWYG and automated stuff" I meant Cpanel like control panels and Frontpage like HTML editors... :P

s9y rocks!!

Re: Problem solved!!!

Posted: Mon Jan 23, 2006 7:45 pm
by garvinhicking
:-)

You're welcome! Glad you solved it!

Regards,
Garvin