View previous topic :: View next topic |
Author |
Message |
NickC -
Joined: 02 Mar 2006 Posts: 6
|
Posted: Sun Mar 12, 2006 12:37 am Post subject: Serving index.* files, which order? |
|
|
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 |
|
 |
Moxxnixx -
Joined: 21 Jun 2003 Posts: 1226 Location: Florida
|
Posted: Sun Mar 12, 2006 1:09 am Post subject: |
|
|
Just rename your index.php file to something else. |
|
Back to top |
|
 |
NickC -
Joined: 02 Mar 2006 Posts: 6
|
Posted: Sun Mar 12, 2006 5:35 am Post subject: |
|
|
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 |
|
 |
MonkeyNation -
Joined: 05 Feb 2005 Posts: 921 Location: Cardiff
|
Posted: Sun Mar 12, 2006 6:03 am Post subject: |
|
|
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 |
 |
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sun Mar 12, 2006 2:40 pm Post subject: Re: Serving index.* files, which order? |
|
|
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 |
|
 |
roganty -
Joined: 08 Jun 2004 Posts: 357 Location: Bristol, UK
|
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon Mar 13, 2006 12:05 pm Post subject: |
|
|
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 |
|
 |
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
|
Back to top |
|
 |
NickC -
Joined: 02 Mar 2006 Posts: 6
|
Posted: Mon Mar 13, 2006 10:17 pm Post subject: Re: Serving index.* files, which order? |
|
|
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 |
|
 |
roganty -
Joined: 08 Jun 2004 Posts: 357 Location: Bristol, UK
|
Posted: Tue Mar 14, 2006 12:00 am Post subject: |
|
|
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 |
|
 |
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Tue Mar 14, 2006 12:43 am Post subject: |
|
|
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 |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue Mar 14, 2006 10:46 am Post subject: |
|
|
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 |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue Mar 14, 2006 11:10 am Post subject: |
|
|
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 |
|
 |
|