Serving index.* files, which order?

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
NickC
-


Joined: 02 Mar 2006
Posts: 6

PostPosted: Sun Mar 12, 2006 12:37 am    Post subject: Serving index.* files, which order? Reply with quote

I wanted to temporarily block access to a directory containing php scripts, so I put a "nothing to see here" index.html file into the php directory.

When users try to access the directory using the URL http://my.server.com/myphp/ they are still served the index.php file.

Is there a specific order of index.* files that the server looks for, or is it just in the order found by the OS's filesystem?

(In the config under Index Files, index.html is at the top of the list, index.php is a couple of entries below.)

I know I could restrict access, but I'd rather give feedback like "nothing to see, come back later", than give them a Forbidden error, since it's only temporary.

Thanks for any advice.
Back to top View user's profile Send private message
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Sun Mar 12, 2006 1:09 am    Post subject: Reply with quote

Just rename your index.php file to something else.
Back to top View user's profile Send private message Visit poster's website
NickC
-


Joined: 02 Mar 2006
Posts: 6

PostPosted: Sun Mar 12, 2006 5:35 am    Post subject: Reply with quote

Moxxnixx wrote:
Just rename your index.php file to something else.


Yeah, I know. Originally I thought it would be good quick-n-dirty way to close off access, then it got me intrigued when it didn't work. I was hoping someone from Aprelium could give us the definitive order that the server uses index files.
Back to top View user's profile Send private message
MonkeyNation
-


Joined: 05 Feb 2005
Posts: 921
Location: Cardiff

PostPosted: Sun Mar 12, 2006 6:03 am    Post subject: Reply with quote

I'll hazard a guess that it's the order in which you added them. (Or the reverse, or something.)
Don't have abyss on this computer to try it.
_________________
Back to top View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun Mar 12, 2006 2:40 pm    Post subject: Re: Serving index.* files, which order? Reply with quote

NickC,

Abyss Web Server follows the order of their declaration in the Index Files table.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
roganty
-


Joined: 08 Jun 2004
Posts: 357
Location: Bristol, UK

PostPosted: Sun Mar 12, 2006 3:27 pm    Post subject: Reply with quote

just thought id bring up a previous topic:
http://aprelium.com/forum/viewtopic.php?t=6379

aprelium, i havn't installed the beta verson for linux, yet.
but is this still on your to-do list?
_________________
Anthony R

Roganty
| Links-Links.co.uk
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Mar 13, 2006 12:05 pm    Post subject: Reply with quote

roganty wrote:
just thought id bring up a previous topic:
http://aprelium.com/forum/viewtopic.php?t=6379

The URL seems to be mistyped as it does not correspond to a valid thread.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Mon Mar 13, 2006 2:59 pm    Post subject: Reply with quote

aprelium wrote:
roganty wrote:
just thought id bring up a previous topic:
http://aprelium.com/forum/viewtopic.php?t=6379

The URL seems to be mistyped as it does not correspond to a valid thread.


http://aprelium.com/forum/viewtopic.php?t=6379 and
http://www.aprelium.com/forum/viewtopic.php?t=6379

both go to the same topic, but one will not work depending on the cookie you have used previously. It didnt work for me without the "www" infront. A small phpbb error. Wonder if its fixed in V3...
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
NickC
-


Joined: 02 Mar 2006
Posts: 6

PostPosted: Mon Mar 13, 2006 10:17 pm    Post subject: Re: Serving index.* files, which order? Reply with quote

aprelium wrote:
NickC,

Abyss Web Server follows the order of their declaration in the Index Files table.


Thanks, indeed it does, even though I'd thought it didn't.

I was using SSI includes and had forgotten my "nothing to see here" index.html file was in fact an index.shtml. Shtml was after index.php, hence the php script was being served.

I manually edited abyss.conf to put shtml above php, restarted the service, and my quick-n-dirty now works well.

Thank you for this server. I'm very impressed with it: small footprint, easy config gui, and stable.
Back to top View user's profile Send private message
roganty
-


Joined: 08 Jun 2004
Posts: 357
Location: Bristol, UK

PostPosted: Tue Mar 14, 2006 12:00 am    Post subject: Reply with quote

The Inquisitor wrote:
http://aprelium.com/forum/viewtopic.php?t=6379 and
http://www.aprelium.com/forum/viewtopic.php?t=6379

both go to the same topic, but one will not work depending on the cookie you have used previously. It didnt work for me without the "www" infront. A small phpbb error. Wonder if its fixed in V3...


Oh, thats probably why i'm recently having a problem signing in

btw, i didn't notice the fact that the "www" was missing, as i copied the addres straight out of the adress bar when i was viewing the post

btw (again) has anyone noticed a slight change in the forum?
for example emoticons (<--) and the topic review in an iframe (\/)
_________________
Anthony R

Roganty
| Links-Links.co.uk
Back to top View user's profile Send private message Visit poster's website
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Tue Mar 14, 2006 12:43 am    Post subject: Reply with quote

I noticed I could no longer use a link on my sig image. It has to be text only now, no images. :-(
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue Mar 14, 2006 10:46 am    Post subject: Reply with quote

roganty wrote:
btw (again) has anyone noticed a slight change in the forum?
for example emoticons (<--) and the topic review in an iframe (\/)

We've updated PhpBB to the latest standard version. We were using before that a home modified release which was too difficult to maintain.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue Mar 14, 2006 11:10 am    Post subject: Reply with quote

roganty wrote:
just thought id bring up a previous topic:
http://aprelium.com/forum/viewtopic.php?t=6379

aprelium, i havn't installed the beta verson for linux, yet.
but is this still on your to-do list?

Yes it is.

2.3 took more time than our early previsions mainly because of ASP.NET 2.0 release on November: we had to rewrite almost 50% of the ASP.NET support because .NET 1.1 and .NET 2.0 were not fully compatible internally.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group