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.
Tag: apache
Jan 21
How to enable mod_rewrite in WordPress
…so you can have descriptive URLs like ours. Three easy steps: 1) First, from /etc/apache2/mods-enabled/ ln -s /etc/apache2/mods-available/rewrite.load 2) Then… /etc/init.d/apache2 restart 3) Last, add this stuff to your virtual host definition (in my case, /etc/apache2/sites-available/everythingiscrap) RewriteEngine On RewriteOptions Inherit I guess you could say that the last step is to ENABLE descriptive permalinks in …
Jan 19
New Virtual Host in Apache on Ubuntu
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 …
Mar 25
Apache Doesn't Start After System Restart
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. …