I fixed the problem by adding this line:

proxy_set_header Host $host;

Regards,
Santiago.

On Wednesday, July 26, 2023 at 8:34:30 AM UTC+2 Santiago Lo Coco wrote:

> Thank you Tim.
>
> The problem is that I already done that.
>
> This is my nginx config for the frontend:
>
> location / {
>     proxy_set_header X-Forwarded-Proto https;
>     proxy_set_header X-Forwarded-Host $host;
>     proxy_set_header X-Forwarded-Server $host;
>     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
>     proxy_pass http://localhost:4000;
> }
>
> Do you know if there is a mistake? 
>
> I also add some `add_header` directives for debugging and they are working 
> perfectly. 
>
> This is the output of `curl -v`:
>
> X-Forwarded-Host: repositorio.uflo.edu.ar
> X-Forwarded-Proto: https
>
> Regards,
> Santiago.
> On Tuesday, July 25, 2023 at 10:35:03 PM UTC+2 DSpace Community wrote:
>
>> Hi Santiago,
>>
>> This sounds like this issue which is documented on our SEO guide in the 
>> official docs: 
>> https://wiki.lyrasis.org/display/DSDOC7x/Search+Engine+Optimization#SearchEngineOptimization-EnsureyourproxyispassingX-ForwardedheaderstotheUserInterface
>>
>> I suspect you need to add both X-Forwarded-Proto and X-Forwarded-Host 
>> headers to your proxy.
>>
>> Tim
>>
>> On Tuesday, July 25, 2023 at 2:52:12 PM UTC-5 [email protected] wrote:
>>
>>> Hello,
>>>
>>> I am having a problem. For some reason, google scholar isn't indexing my 
>>> website. The website generates almost all the *meta *tags perfectly. 
>>> For example, with this article 
>>> <https://repositorio.uflo.edu.ar/entities/art%C3%ADculo/d5c80da7-b559-48fb-bf2b-c532671900a3>
>>> :
>>>
>>>     <meta name="citation_title" content="Revisión sistemática sobre 
>>> psicoterapias efectivas y/o tratamientos combinados con pacientes con 
>>> severidad y comorbilidad">
>>>     <meta name="citation_author" content="Scherb, Elena Diana">
>>>     <meta name="citation_publication_date" content="2022-05">
>>>     <meta name="citation_issn" content="2602-8379">
>>>     <meta name="citation_language" content="es">
>>>     <meta name="citation_keywords" content="PSICOTERAPIA; 
>>> PSICOPATOLOGIA">
>>>     <meta name="citation_abstract_html_url" content="
>>> https://hdl.handle.net/20.500.14340/909";>
>>>     <meta name="citation_publisher" content="Universidad Estatal de 
>>> Milagro">
>>>     <meta name="citation_pdf_url" content="
>>> https://localhost:4000/bitstreams/ea3094d6-1d9f-4c42-88aa-7bb038833f79/download
>>> ">
>>>
>>> The only wrong tag and that is maybe the one that is causing the index 
>>> to fail is the last one. How can I fix it? Because I can hardcode it in the 
>>> frontend file but there must be a better solution. I am using a nginx proxy 
>>> with the X-.. tags correctly. 
>>>
>>> Do you know if this is the problem causing google scholar to not index 
>>> our website? 
>>>
>>> Regards,
>>> Santiago.
>>>
>>>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-community/4b2a1962-6ca2-475f-8015-d55aed622fbfn%40googlegroups.com.

Reply via email to