×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Bash
Posted by: Roman Ignatov
Added: Nov 30, 2016 10:55 AM
Views: 6
Tags: sysadmin
You just have to source the environment variables upfront, and the binary has a different name for historical reasons
  1. source /etc/apache2/envvars
  2. /usr/sbin/apache2 -S
  3.  
  4. VirtualHost configuration:                                                      
  5. 1.2.3.4:80      me.example.net (/etc/apache2/sites-enabled/me.conf:5)
  6. 2.3.4.5:80      others.example.net (/etc/apache2/sites-enabled/others.conf:1)
  7. 2.3.4.5:443     others.example.net (/etc/apache2/sites-enabled/others.conf:38)
  8. Syntax OK
  9.  
  10. # Alternative method:
  11.  
  12. apache2ctl -S