11 Search results

For the term "virtualhost".

Apache2 Invalid method in request \x16\x03\x01

Apache2 reports an error “Invalid method in request \x16\x03\x01” Check that the IP address is correct in line #8 of /etc/apache2/sites-available/www.example.com <VirtualHost *:80> ServerAdmin webmaster@seleads.com ServerName www.example.com ServerAlias example.com Redirect 301 http://example.com http://www.example.com/ DocumentRoot /var/www/www.example.com/ </VirtualHost> <VirtualHost 199.199.199.199:443> SSLEngine on ServerName example.com SSLCACertificateFile /etc/apache2/ssl/PrimaryRootCA.crt SSLCertificateChainFile /etc/apache2/ssl/Thawte_DV_SSL_CA_Bundle.crt SSLCertificateFile /etc/apache2/ssl/example.crt SSLCertificateKeyFile /etc/apache2/ssl/private/example.key DocumentRoot /var/www/www.example.com/ </VirtualHost>

Apache Virtual Host Example

There are so many variation of how to setup Apache VirtualHost that its difficult for a beginner to figure it all out. Here is how I have found works best for a LAMP server that you own. If its not a standard Linux distro (Debian/Ubuntu here) all bets are off. sudo vi /etc/apache2/sites-available/www.example.com copy this code into the file <VirtualHost...

Canonical Redirect

For Apache2 Ubuntu 12.04 LTS the VirtualHost for sites is in /etc/apache2/sites-available sudo vi www.example.com add this line Redirect 301 http://example.com http://www.example.com/ <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName example.com ServerAlias www.example.com Redirect 301 http://example.com http://www.example.com/ DocumentRoot /var/www/www.example.com/ </VirtualHost>

Setup SSL on Debian Apache Virtualhost

Assuming: Debian 7 Wheezy You have more than one website on your server (therefore you are using Virtualhost files for each website) You are on Apache2.2 https://www.debian-administration.org/article/349/Setting_up_an_SSL_server_with_Apache2 You should do this first : Generate SSL key, crt, csr files Apache SSL Setup (what they say and what I did not do): To enable SSL, type (as user root): sudo a2ensite...

How To Setup Munin on Ubuntu 12.04 LTS

Assumption: You will access munin using the server IP adress http://123.123.123.123/munin (there are several ways to setup and access munin, but in a VirtualHost environment it may not be desirable to setup/access via a VirtualHost.) sudo apt-get install munin munin-node sudo vi /etc/munin/apache.conf Allow from localhost 127.0.0.0/8 ::1 # Replace with this Allow from all # add this line just...

Install Apache on Debian and Ubuntu

Install Apache sudo apt-get install apache2 sudo vi /etc/apache2/sites-available/default change AllowOverride None > AllowOverride All in line 11 Enable Apache rewrite and restart Achtung! Don’t forget or things will not work and you’ll waste hours trying to find out why sudo a2enmod rewrite Restart Apache sudo service apache2 restart If no error, its working Optional: The following “example” is used...

unable to resolve host – not found or unable to stat

Debian 7 Apache 2.2.22 Virtualhost with only one website using ssl – ssl certificate is for www.example.com (not example.com) The following setup resolves the “unable to resolve host” error /etc/hosts 127.0.0.1 localhost 127.0.1.1 www.example.com /etc/hostname www.example.com However, now we have a new apache error [error] [client 127.0.0.1] script ‘/var/www/wp-cron.php’ not found or unable to stat Change hosts to /etc/hosts 127.0.0.1...

9 Steps To Setup SSL on UBUNTU 12.04 APACHE 2.22

I found a lot of misleading and confusing How-To stuff when installing an SSL certificate on Ubuntu 12.04 LTS and Apache 2.22. I also share most people confusion when it comes to encryption. Only after a lot of repetition has the fog begun to clear. It helps to realize: The “key” is your PRIVATE file. Don’t ever share it. Its stays...

Migrate WordPress

How To Migrate a WordPress instance to a New Server Backup Site internally (slice1) sudo cp -Rf /var/www/www.example.com /home/username/sites Backup MYSQL database mysqldump -u root -p www_example_com > www_example_com.sql sudo mv www_example_com.sql /home/username/sites It is convenient to put everything into one directory so all files can be moved at once. I use /home/username/sites Copy site and SQL file back to...

Magento 1.7 Multiple Sites Install on Ubuntu Linux

How To Install Multiple Stores in Magento 1.7 These are my notes. I do not profess to be a professional Magento developer. This guide is for a pure SSH install using Rsync. Now given that you are proficient with SSH and command line Linux, the install of Magento is not difficult if you also can: Create a MySQL database, user...

Install Joomla 2.5 on Ubuntu 12.04 LTS

Assuming Joomla is uploaded to your remote server and unzipped in /home/username/joomla Create your website directory sudo mkdir /var/www/www.example.com Copy Joomla to the website directory sudo cp -Rf /home/username/joomla/* /var/www/www.example.com I use scripts to set Joomla permission at this point. If you run into trouble, it will be because permissions are not set correctly, so I do this by default....