Dispatcher conf.d/available_vhosts Include files Report an error | Community
Skip to main content
December 27, 2023
Solved

Dispatcher conf.d/available_vhosts Include files Report an error

  • December 27, 2023
  • 1 reply
  • 981 views

Hello everyone, I have a problem like this. Have you ever encountered it?

In the directory dispatcher\src\conf.d\available_vhosts,We have a lot of .vhost type files,Among these files, there is a section of the same class content,like this:

So I want to extract this content, put it in an announcement file, and then reference it in every .vhost file. like this:

But in this way, there will be such errors

How can I solve this problem?

I hope to receive your help。

 

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Mahedi_Sabuj

HI @wulinzh,

The file extension seems incorrect. Please try by renaming file to cache_ttl.conf

# Cache TTL Config Include conf.d/available_vhosts/cache_ttl.conf

 

1 reply

Mahedi_Sabuj
Community Advisor
Mahedi_SabujCommunity AdvisorAccepted solution
Community Advisor
December 27, 2023

HI @wulinzh,

The file extension seems incorrect. Please try by renaming file to cache_ttl.conf

# Cache TTL Config Include conf.d/available_vhosts/cache_ttl.conf

 

Mahedi Sabuj
wulinzhAuthor
December 27, 2023

It will also report an error,I have tried  .conf  .txt  .vhost  .vars, but none of them worked

 

Mahedi_Sabuj
Community Advisor
Community Advisor
December 27, 2023

Can you try using full path: /ete/httpd/conf.d/available_vhosts/cache_ttl.conf?

Mahedi Sabuj