Welcome to WebmasterWorld Guest from 54.196.214.35

Forum Moderators: goodroi

Message Too Old, No Replies

sitemap for images on subdomain

     
12:57 pm on Jun 10, 2011 (gmt 0)

Full Member

5+ Year Member

joined:Apr 26, 2009
posts: 246
votes: 2


Hi,

I have created a images.mysite.com subdomain, where I only have one directory /myimages/, where I've placed all images that are served on my main www.mysite.com site.

1. I am trying to create an image sitemap for google
2. How to disallow an access to any other directory on the subdomain including main directory that in fact does not contain an index file.

I have seen this on some sites, when you try to access any directory including main and directory where images are located, you'll get an error like the one below, but you can still access an individual images on the subdomain. In my case I always get a server response 403 instead.

This XML file does not appear to have any style information associated with it. The document tree is shown below.

<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>2ABA2C1E5D16188F</RequestId><HostId>xan2jjFKn76U+m0+beCQA6USWvp1tVMlX38QUdbLgJGxAzZADZ9qCAeLKzMzuuEf</HostId></Error>


I am not a big pro of an xml so if you guys can think of anything that can be done or used I would really appreciate if you talk to me as if you would talk to a 5 year old :-)
9:44 pm on June 10, 2011 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:10544
votes: 8


what type of server are you on?

In my case I always get a server response 403 instead.

only when you request a directory or also for image requests?

what response would you prefer for a directory request that does not contain an index file?
10:53 pm on June 10, 2011 (gmt 0)

Full Member

5+ Year Member

joined:Apr 26, 2009
posts: 246
votes: 2


Thanks for your reply,

I am on Apache. 403 response only for request of directory no images are fine.

I would prefer to get same "access denied" as I have shown in my previous post for any directory that does not contain an index file.

Thanks for your help in advance
6:50 am on June 11, 2011 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:10544
votes: 8


In my case I always get a server response 403 instead.


403 should be the response you get when you request a directory in which no DirectoryIndex has been specified or the default directory index document does not exist and "Options Indexes" has not been specified.

403 actually means Forbidden:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.4 [w3.org]

i assume that's what you mean by "access denied".

i would also assume that the xml document you are getting in response to your "Forbidden" request is a custom ErrorDocument:
http://httpd.apache.org/docs/2.0/mod/core.html#errordocument [httpd.apache.org]