Skip to content

Config values overwrite when they have the same key #1

@rickschippers

Description

@rickschippers

I'm using the library to parse apache configurations. I have a configuration like this:

<VirtualHost *:80>
	ServerAdmin foo@bar.com

	DocumentRoot /var/www/vhosts/default/web

	ErrorLog ${APACHE_LOG_DIR}/error.log
	CustomLog ${APACHE_LOG_DIR}/access.log combined

	Include conf-available/php7.1-fpm.conf
	Include expires.conf
</VirtualHost>

When this is parsed the VirtualHost.Include config will have the expires.conf. During parsing it has overwritten the conf-available/php7.1-fpm.conf, since the are both stored in in the Include key. But since you can have multiple Include statements in apache configuration they should not overwrite.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions