Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
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
Level 10

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
Level 10

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

Level 10

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