Jump to content

.htaccess again apache 2.4


Recommended Posts

Hi all for some time on a production machine tempted to pick up the Apache version to 2.4 and I no longer work in prestashop urlfrendly and unfortunately I'm running out no any idea what's wrong

 

statingthe examplelooks like this

 

 

 

 

[Fri Oct 26 16:29:40.118418 2012] [authz_core:debug] [pid 2135] mod_authz_core.c(802): [client 78.9.3.154:1783] AH01626: authorization result of <RequireAny>: granted, referer: http://sklep.rajskismak.com.pl/

[Fri Oct 26 16:29:40.118458 2012] [core:info] [pid 2135] [client 78.9.3.154:1783] AH00128: File does not exist: /var/customers/webs/rajskismak/sklep/138-138-medium_default, referer: http://sklep.rajskismak.com.pl/

[Fri Oct 26 16:29:40.161873 2012] [authz_core:debug] [pid 2134] mod_authz_core.c(802): [client 78.9.3.154:1784] AH01626: authorization result of Require all granted: granted, referer: http://sklep.rajskismak.com.pl/

[Fri Oct 26 16:29:40.161902 2012] [authz_core:debug] [pid 2134] mod_authz_core.c(802): [client 78.9.3.154:1784] AH01626: authorization result of <RequireAny>: granted, referer: http://sklep.rajskismak.com.pl/

[Fri Oct 26 16:29:40.161941 2012] [core:info] [pid 2134] [client 78.9.3.154:1784] AH00128: File does not exist: /var/customers/webs/rajskismak/sklep/139-139-medium_default, referer: http://sklep.rajskismak.com.pl/

[Fri Oct 26 16:30:06.611383 2012] [authz_core:debug] [pid 2132] mod_authz_core.c(802): [client 78.9.3.154:1786] AH01626: authorization result of Require all granted: granted, referer: http://sklep.rajskismak.com.pl/

[Fri Oct 26 16:30:06.611435 2012] [authz_core:debug] [pid 2132] mod_authz_core.c(802): [client 78.9.3.154:1786] AH01626: authorization result of <RequireAny>: granted, referer: http://sklep.rajskismak.com.pl/

[Fri Oct 26 16:30:06.612167 2012] [core:info] [pid 2132] [client 78.9.3.154:1786] AH00128: File does not exist: /var/customers/webs/rajskismak/sklep/138-yerba-mate.html, referer: http://sklep.rajskismak.com.pl/

 

==> /var/customers/logs/rajskismak-access.log <==

78.9.3.154 - - [26/Oct/2012:16:30:06 +0200] "GET /138-yerba-mate.html HTTP/1.1" 404 290 "http://sklep.rajskismak.com.pl/" "Mozilla/5.0 (Windows NT 5.2; WOW64) AppleWebKit/535.12 (KHTML, like Gecko) Maxthon/3.0 Chrome/18.0.966.0 Safari/535.12"

 

==> /var/customers/logs/rajskismak-error.log <==

[Fri Oct 26 16:30:06.773927 2012] [authz_core:debug] [pid 2142] mod_authz_core.c(802): [client 78.9.3.154:1787] AH01626: authorization result of Require all granted: granted

[Fri Oct 26 16:30:06.773964 2012] [authz_core:debug] [pid 2142] mod_authz_core.c(802): [client 78.9.3.154:1787] AH01626: authorization result of <RequireAny>: granted

[Fri Oct 26 16:30:06.774011 2012] [core:info] [pid 2142] [client 78.9.3.154:1787] AH00128: File does not exist: /var/customers/webs/rajskismak/sklep/favicon.ico

 

==> /var/customers/logs/rajskismak-access.log <==

78.9.3.154 - - [26/Oct/2012:16:30:06 +0200] "GET /favicon.ico HTTP/1.1" 404 282 "-" "Mozilla/5.0 (Windows NT 5.2; WOW64) AppleWebKit/535.12 (KHTML, like Gecko) Maxthon/3.0 Chrome/18.0.966.0 Safari/535.12"

 

 

www-servers/apache-2.4.3 was built with the following:

USE="(multilib) ssl static -debug -doc -ldap (-selinux) -suexec -threads" APACHE2_MODULES="access_compat alias auth_basic authn_anon authn_core authn_file authz_core authz_host authz_user cache cgid deflate dir expires filter headers log_config mime mime_magic rewrite socache_shmcb substitute unixd vhost_alias -actions -asis -auth_digest -authn_alias -authn_dbd -authn_dbm -authz_dbm -authz_groupfile -authz_owner -autoindex -cache_disk -cern_meta -cgi -charset_lite -dav -dav_fs -dav_lock -dbd -dumpio -env -ext_filter -file_cache -ident -imagemap -include -info -lbmethod_bybusyness -lbmethod_byrequests -lbmethod_bytraffic -lbmethod_heartbeat -log_forensic -logio -negotiation -proxy -proxy_ajp -proxy_balancer -proxy_connect -proxy_ftp -proxy_http -proxy_scgi -reqtimeout -setenvif -slotmem_shm -speling -status -unique_id -userdir -usertrack -version" APACHE2_MPMS="prefork -event -itk -peruser -worker"

LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--no-as-needed"

 

 

Somebody have any idea

Edited by tczaude (see edit history)
Link to comment
Share on other sites

  • 2 years later...

Ok as jessie is out and make use of 2.4 and also because you want to speed up your prestashop store there few way to make your htaccess works.

 

- First workaround of all create a <Directory path/to/prestashop> and putt allow override all ( but this not really a good idea)

- Second ( the best ) include every htaccess in your apache virtualhost two resons for that this is faster ( no lstat ) second more safe third you control everythin, the plause you need to modify your config every times you  change your shop rules ( if you do it a lot this boring but i do it one time a year ).

Take a look at my website https://www.kingsoul.fr and try https://developers.google.com/speed/pagespeed/insights/

 

If you are faster let me know and post it there :)

 

Apache 2.4, prestashop 1.6

Edited by kingsoul (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...