/var/log/apache
Where are Apache file access logs stored?
<Directory "/path/to/dir">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</Directory>
<FilesMatch "\.(ttf|otf|eot|woff)$">
<IfModule mod_headers.c>
Header Set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
<FilesMatch "\.(ttf|otf|eot|woff)$">
<IfModule mod_headers.c>
SetEnvIf Origin "http(s)?://(www\.)?(google.com|staging.google.com|development.google.com)$" AccessControlAllowOrigin=$0
Header add Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin
</IfModule>
</FilesMatch>
service apache2 restart
Follow these steps to remove the apache2 service using Terminal:
-
First stop the apache2 service if it is running with:
sudo service apache2 stop -
Now remove and cleanup all the apache2 packages with:
sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common //or sudo apt-get purge apache2 apache2-utils apache2-bin apache2.2-common -
Finally, run
sudo apt-get autoremovejust in case any other cleanup in needed
You can do the following two tests to confirm apache has been removed:
which apache2- should return a blank linesudo service apache2 start- should returnapache2: unrecognized service