Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: [SOLVED] Files in server can be accessed only once at a time |
|
Author |
|
Stoyicker
Joined: 17 Mar 2013 Posts: 4
|
Posted: Sun 17 Mar '13 15:26 Post subject: [SOLVED] Files in server can be accessed only once at a time |
|
|
I have a tiny "webpage" in an Apache server running on my computer. I've got for it this .htaccess file:
http://pastebin.com/m0FxFVqC
I have written it by googling, and though I'm not really sure it's ok (I don't really know very much about Apache HTTPD, but my Java suite requires this stuff, so here I am). Supposedly the first paragraph is to avoid Google Chrome from caching my files and the second part (the Order sentences) are to allow anyone to view only those kinds of files (which is otherwise let them see everything but folder roots - I guess there's some way to do this shorter/better, so if somebody knows, it's appreciated).
And here is the httpd.conf, which I've modified almost only to change the listen port, the server name, and to replace the AllowOverride None into AllowOverride All so that .htaccess is actually used (I've deleted the comments for readability).
http://pastebin.com/c0NLtd5p
The thing is, I don't know why, I had never heard of something similar, "I can only load one instance of each file". In explanation, the only html file there's, runs from time to time a PHP script. Let's say I run it on localhost for example. Then everything is going fine. But I open a new tab, and load the same page (while the another one is yet open), and I'll get a 412 HTTP error. Similar thing happens if I try to load the webpage from another device. And, with my little experience with Apache HTTPD, I guess it's because of this .htaccess or httpd.conf files. Anyone knows why does this happen or how can I solve it (either it be or not related to one of these files, I'll do whatever is needed)?
Apache 2.2.22 which can be found [link http://ftp.udc.es/apache//httpd/binaries/win32/httpd-2.2.22-win32-x86-no_ssl.msi]here[/link] in Windows 8 x86.
Last edited by Stoyicker on Mon 18 Mar '13 17:15; edited 1 time in total |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Mon 18 Mar '13 16:34 Post subject: |
|
|
Is there something in the error log about that? |
|
Back to top |
|
Stoyicker
Joined: 17 Mar 2013 Posts: 4
|
Posted: Mon 18 Mar '13 16:40 Post subject: |
|
|
No, there isn't. The logs/access.log folder reflects the 412's though, but that's expectable I guess. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Mon 18 Mar '13 16:41 Post subject: |
|
|
There should be 200 or 302 as codes, 412 is not normal.
What happens when you disable .htaccess? |
|
Back to top |
|
Stoyicker
Joined: 17 Mar 2013 Posts: 4
|
Posted: Mon 18 Mar '13 16:51 Post subject: |
|
|
Makes no difference at all. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Mon 18 Mar '13 16:56 Post subject: |
|
|
From the config I see nothing that is a hindrance. Firewall? Antivirus? |
|
Back to top |
|
Stoyicker
Joined: 17 Mar 2013 Posts: 4
|
Posted: Mon 18 Mar '13 17:15 Post subject: |
|
|
Hahaaa you did it! I don't use Windows firewall, but it was antivirus, completely forgot about it, since it was years I don't have problems with it (avast!). I can't thank you enough. If you ever need any kind of help in Java, I'll be glad to help! |
|
Back to top |
|
|
|
|
|
|