logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Include directive with wildcards only reads one config file
Author
jse



Joined: 07 Mar 2014
Posts: 1
Location: Graz, Austria

PostPosted: Fri 07 Mar '14 9:35    Post subject: Include directive with wildcards only reads one config file Reply with quote

Hello,
After hours of trying and googling without success, I hope this forum can help to solve my issue.

The apache doc http://httpd.apache.org/docs/current/en/mod/core.html#include says that the following should work:
Code:

Include conf/ssl.conf
Include conf/vhosts/*.conf


Quote:

Shell-style (fnmatch()) wildcard characters can be used in the filename or directory parts of the path to include several files at once, in alphabetical order.


Unfortunately, the unix command
Code:

apachectl configtest
root@host# apachectl configtest
Processing config file: /usr/local/apache2/conf/ssl.conf
Processing config file: /usr/local/apache2/conf/vhosts/vhost1.conf
Processing config file: /usr/local/apache2/conf/vhosts/vhost2.conf
Syntax OK

which also prints the processed files seems not to be available for the windows version, right? httpd.exe -t only says "Syntax OK".

Anyways, in my apache 2.4.7 I want to include multiple config files by stating sth. like:

Code:

Include conftest/*suffix.conf


I created the following files, and expected them to be loaded in this order:
Code:

conftest/a-suffix.conf
conftest/b-suffix.conf


Simplified, the contents are:
Code:

a:
Alias /testreports c:/testreports
ProxyPass /testreports !

b:
ProxyPass / ajp://localhost:8009/ disablereuse=on max=500 retry=1


But it seems 'a' is ignored and only 'b' is read when apache is started. It's always the proxypass that matches my request to /testreports.
If I put the contents of 'a' on top of the 'b' file, everything works fine.

Any ideas why the first file is obviously ignored?

Many Thanks,
Joachim
Back to top


Reply to topic   Topic: Include directive with wildcards only reads one config file View previous topic :: View next topic
Post new topic   Forum Index -> Apache