Expand my Community achievements bar.

SOLVED

Dispatcher conf.d/available_vhosts Include files Report an error

Avatar

Level 1

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:

wulinzh_0-1703649560974.png

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

wulinzh_1-1703649735340.png

But in this way, there will be such errors

wulinzh_2-1703649940427.png

How can I solve this problem?

I hope to receive your help。

 

 

 

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

 

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

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

 

Avatar

Level 1

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

wulinzh_0-1703664700685.png

 

Avatar

Community Advisor

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

Avatar

Level 1

Thank you, but I don't think that's the reason, because this file is also configured like this, but it  worked

wulinzh_0-1703666518551.png