To block a whole server from using xmlrpc.php (sometimes used for an attack vector) just put this in your apache2.conf file: # remove access to all xmlrpc.php files (attack vector) <Files xmlrpc.php> Order Deny,Allow Deny from all </Files> More info here.
Real quick, in order to force PDF files to download instead of showing in the browser add this to your .htaccess file Works reasonably well for me. (EDIT) Except, then I realized that it doesn't work in my favorite browser, Chrome. So, here is the new code… For this I had to enable mod_headers and …
So, we get our security certificates (for our Ubuntu web server) from Thawte, 'cuz they're cheap. Their instructions take you through every step to create and implement your certificate, however, for some reason, apache wouldn't restart when the server was restarted. typing apache2ctl restart gave a long error that goes something like "(98)Address already in …
I needed to redirect the root of my Webserver. The first (and easiest) way I found was to add this to my default virtual host: Redirect / http://www.new-domain.com/ For me, that file was located in /etc/apache2/sites-available/default.
To fix the error "Could not reliably determine the server’s fully qualified domain name…" that happens when you restart Apache on Ubuntu, add this to /etc/apache2/httpd.conf ServerName localhost restart Apache again (apache2ctl graceful) and the error message should be gone. Thanks to Mohamed Aslam
I'm an IIS guy, so Apache seems arcane to me. And the creation of a new website (aka Virtual Host) was difficult at first, but seems straightforward enough to me now. Here's how it's done. Create a text file that will define your website in /etc/apache2/sites-available. In that text file goes a description of your …
Linux web server restart problem… cd /etc/apache/ httpd -t httpd.conf [which websites are "missing", comment them out in httpd.conf] apachectl restart …Had a power outage today which means our linux web server went down. And, once again, the web server didn't start because it couldn't find all the web sites listed in it's config file. …