Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Conversation

@jamielennox
Copy link
Contributor

Adding a new vhost on port 80 on logs conflicts with the http to https
redirect. Combine this with the existing secure one.

Signed-off-by: Jamie Lennox jamielennox@gmail.com

Adding a new vhost on port 80 on logs conflicts with the http to https
redirect. Combine this with the existing secure one.

Signed-off-by: Jamie Lennox <jamielennox@gmail.com>
@bonnyci
Copy link

bonnyci bot commented May 5, 2017

ProxyPass "/ara/" uwsgi://localhost:3311/

<Location "/ara/">
ErrorLog /var/log/apache2/ara.log
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't allowed inside a Location directive.

May 05 22:34:43 logs apache2[31418]: Output of config test was:
May 05 22:34:43 logs apache2[31418]: AH00526: Syntax error on line 75 of /etc/apache2/sites-enabled/logs.conf:
May 05 22:34:43 logs apache2[31418]: ErrorLog not allowed here
May 05 22:34:43 logs apache2[31418]: Action 'configtest' failed.

It looks like if these share a vhost, they also need to share a log file.

ErrorLog /var/log/apache2/ara.log
CustomLog /var/log/apache2/ara_access.log combined

SetEnv ANSIBLE_CONFIG /var/www/ara/ansible.cfg
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just checked this, and SetEnv works after removing the above log directives.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants