Jump to content

Prestashop 1.7.6.2 , mediaserver en ontbrekende afbeeldingen


peter4661

Recommended Posts

Beste medestrijders,

Om de site snelheid te verhogen heb ik geprobeerd een mediaserver te installeren/ activeren via een subdomein. Helaas laden de afbeeldingen niet.
Bij ingeschakelde mediaserver is de url naar de afbeelding correct naar het subdomein.

Uitgevoerde stappen na installatie:
stap 1 .htaccess opnieuw gegenereerd en gecontroleerd. Hieronder stukje van de .htaccess file

# Images
RewriteCond %{HTTP_HOST} ^static-1.derks-wielersport.nl$ [OR]
RewriteCond %{HTTP_HOST} ^www.derks-wielersport.nl$
RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]

stap 2. smarty cache geleegd
 

In het serverfoutlog voor het subdomein staan volgende foutmeldingen:
[Sat Feb 22 17:23:38.052563 2020] [core:error] [pid 804261:tid 139705571972864] [client xx.xxx.xx.85:52557] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

Op www gezocht wat deze opmerking inhoud : 'Request exceeded the limit of 10 internal redirects due to probable configuration error'. Daar geen aanknopingspunten gevonden.

Heeft iemand een idee in welke richting ik zou kunnen zoeken?

Preastashop 1.7.6.2 / PHP 7.2 /

 

 

 


 

Link to comment
Share on other sites

Maconl, dank voor de tip.

Direct toegepast, directory geleegd (er was geen index.php, is er ook niet bij onze testsite). SSL was/is geactiveerd.
 

Helaas heeft je suggestie niet geholpen.  Foutmelding in subdomein error log: [Sat Feb 22 23:22:35.935022 2020] [core:error] [pid 1178365:tid 139705479653120] [client 66.249.64.85:54058] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

Link to comment
Share on other sites

ok bedankt
ssl moet dus wel uitstaan , tenzij je ssl op je subdomein hebt ,,
het zit hem dus puur in je htacces
 

in subdomein ssl uitzetten (tenzij er ook ssl op zit
dan nu nog een keer de htaccess hergenereren 

je kan ook een kijkje nemen op :

https://www.andrew-kirkpatrick.com/2012/06/apache-virtualhost-htaccess-issue-request-exceeded-the-limit-of-10-internal-redirects-redirected-from-r-uri/

Link to comment
Share on other sites

Probleem lijkt idd in .htacces te zitten.  

Overigens wil ik wil afbeeldingen én HTML achter SSL hebben. Anders krijg je van de browser mixed content waarschuwingen.

De tips van andrew kirkpatrick gaven geen aanknopingspunt.

Vond in Prestashop documentatie hoe een mediaserver op te zetten in een subdomain.  (http://doc.prestashop.com/display/PS17/Performance

Put a .htaccess file at the root of the subdomain. That file should contain a single line: Redirect Permanent / http://cdn-adress.com
Replace the http://cdn-adress.com with the one from your CDN server. This way, you are creating an automatic redirection from your subdomain to your CDN server.
Once the subdomain is in place, add it in the first field, "Media server #1". If that host allows for more web addresses, create as many subdomains to your store's main domain name.

Bij mij was de .htacces file in elke geval niet conform de aanwijzing van Prestashop. Heb deze deze aangepast. ( Regel in .htacces file voor subfolder static-1: Redirect Permanent / https://static-1.derks-wielersport.nl) .

De aanwijzingen van Prestashop gevolgd en correct uitgevoerd. Het probleem blijft echter.

Helaas ontbreekt mij de kennis om dit probleem verder te onderzoeken. 

Tips blijven welkom.

 

 

Aanwijzing Prestashop setup mediaserver

" In case you would rather that your files are still visually downloaded from your domain name rather that from an unknown domain name, follow this process:

Create a subdomain for your store's domain name, for instance http://cdn1.example.com (the way to do that depend on your host, ask him about it).
 

 

 

image.thumb.png.d11c1e9d5a35f5e943b00a49d0d5444f.png

 

 

 

image.png

Link to comment
Share on other sites

Hallo Wallgrind,
Dank voor je suggestie.
We hebben m.b.v. DirectAdmin sub-domein aangemaakt . Dat ziet er dan zo uit binnen public_html:  domain.nl/public_html/sub-domain/.      

Https instellingen kunnen voor het sub-domein niet worden aangepast.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...