Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
file where Apache2 environment variables are set?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1655

PostPosted: Wed Oct 13, 2021 8:52 pm    Post subject: file where Apache2 environment variables are set? Reply with quote

Greetings all,
is there a file on Gentoo like 'envvars' on Ubuntu?
Its a file where Apache2 environment variables are set.
https://ubuntu.com/server/docs/web-servers-apache

I looked here https://wiki.gentoo.org/wiki/Apache and did not see anything.

Here is an example use:
https://serverfault.com/questions/151328/setting-apache2-path-environment-variable
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9677
Location: almost Mile High in the USA

PostPosted: Wed Oct 13, 2021 11:53 pm    Post subject: Reply with quote

You can add them to /etc/conf.d/apache2 . This is for openrc, but the systemd service file points to the same file.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1655

PostPosted: Thu Oct 14, 2021 3:08 pm    Post subject: Reply with quote

eccerr0r wrote:
You can add them to /etc/conf.d/apache2 . This is for openrc, but the systemd service file points to the same file.


Thank you eccerr0r

I also discovered SetEnv:
http://httpd.apache.org/docs/2.2/mod/mod_env.html#setenv
That is handy for debugging one web application:
Code:
SetEnv NYTPROF addpid=1:file=/tmp/nytprof.out

_________________
Donate to Gentoo
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum