Advertisement
Luke_R

apache2 configs (/etc/apache2/envvars)

Nov 6th, 2016
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.82 KB | None | 0 0
  1. refreshed
  2. /etc/apache2/envvars
  3.  
  4. # envvars - default environment variables for apache2ctl
  5.  
  6. # this won't be correct after changing uid
  7. unset HOME
  8.  
  9. # for supporting multiple apache2 instances
  10. if [ "${APACHE_CONFDIR##/etc/apache2-}" != "${APACHE_CONFDIR}" ] ; then
  11.     SUFFIX="-${APACHE_CONFDIR##/etc/apache2-}"
  12. else
  13.     SUFFIX=
  14. fi
  15.  
  16. # Since there is no sane way to get the parsed apache2 config in scripts, some
  17. # settings are defined via environment variables and then used in apache2ctl,
  18. # /etc/init.d/apache2, /etc/logrotate.d/apache2, etc.
  19. export APACHE_RUN_USER=www-data
  20. export APACHE_RUN_GROUP=www-data
  21. # temporary state file location. This might be changed to /run in Wheezy+1
  22. export APACHE_PID_FILE=/var/run/apache2/apache2$SUFFIX.pid
  23. export APACHE_RUN_DIR=/var/run/apache2$SUFFIX
  24. export APACHE_LOCK_DIR=/var/lock/apache2$SUFFIX
  25. # Only /var/log/apache2 is handled by /etc/logrotate.d/apache2.
  26. export APACHE_LOG_DIR=/var/log/apache2$SUFFIX
  27.  
  28. ## The locale used by some modules like mod_dav
  29. export LANG=C
  30. ## Uncomment the following line to use the system default locale instead:
  31. #. /etc/default/locale
  32.  
  33. export LANG
  34.  
  35. ## The command to get the status for 'apache2ctl status'.
  36. ## Some packages providing 'www-browser' need '--dump' instead of '-dump'.
  37. #export APACHE_LYNX='www-browser -dump'
  38.  
  39. ## If you need a higher file descriptor limit, uncomment and adjust the
  40. ## following line (default is 8192):
  41. #APACHE_ULIMIT_MAX_FILES='ulimit -n 65536'
  42.  
  43. ## If you would like to pass arguments to the web server, add them below
  44. ## to the APACHE_ARGUMENTS environment.
  45. #export APACHE_ARGUMENTS=''
  46.  
  47. ## Enable the debug mode for maintainer scripts.
  48. ## This will produce a verbose output on package installations of web server modules and web application
  49. ## installations which interact with Apache
  50. #export APACHE2_MAINTSCRIPT_DEBUG=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement