Same problem here. I have 4 worpress sites running on Apache2 using RHEL. Two weeks ago, I configured VirtualHosting according to documentation, and three of the four sites work flawlessly. One resolves with internal server errors. (The first one. This means something….)
Here is how I got it to barely work: # # Use name-based virtual hosting. # NameVirtualHost *:80 <VirtualHost *:80> //For some odd reason this made the blog work, but does not direct traffic to it. You have to append the folder DocumentRoot "/var/www/html" ServerName xxx.xxx.xxx.xxx </VirtualHost> #<VirtualHost *:80> //Commented out the blog that was failing. #DocumentRoot "/var/www/html/blog" #ServerName digestivehealth.musc.edu #</VirtualHost> <VirtualHost *:80> //The rest work fine. DocumentRoot "/var/www/html/ddrc" ServerName blog.place.edu </VirtualHost> Now I am thinking perhaps a mod_rewrite in the root virtual host that will direct traffic to the /blog folder. (I am serving nothing out of root folder) But honestly, there appears to be no reason for this, and I just spent two weeks on it. The code in the documentation does not appear to work. Very frustrating. Thanks, Harry From: Andy Canfield <andycanfi...@yandex.com<mailto:andycanfi...@yandex.com>> Reply-To: "users@httpd.apache.org<mailto:users@httpd.apache.org>" <users@httpd.apache.org<mailto:users@httpd.apache.org>> Date: Friday, May 16, 2014 at 11:37 PM To: "users@httpd.apache.org<mailto:users@httpd.apache.org>" <users@httpd.apache.org<mailto:users@httpd.apache.org>> Subject: [users@httpd] YOU BROKE MY CODE! Last week, if you went to http://www.andycanfield.com, you would see my web site. Today, if you go there, you will see "Internal Server Error". Apache broke it. We had four sites on that computer: [1] http://210.213.49.151/ took you to /var/www/index.html [2] http://www.andycanfield.com took you to my personal web site [3] http://210.213.49.151/fasemat took you to FASEMAT [4] http://210.213.49.151/opal took you to OPAL Number 1, 3, and 4 are still working, but number 2 gives "Internal Server Error". Here is the entry in sites-enabled: ________________________________ NameVirtualHost *:80 <VirtualHost *:80> ServerName www.andycanfield.com<http://www.andycanfield.com> ServerAlias andycanfield.com *.andycanfield.com DocumentRoot /www/andycanfield/Site </VirtualHost> <Directory /www/andycanfield/Site> AuthType None Require all granted Options FollowSymLinks </Directory> ________________________________ That was essentially copied from your documentation (http://httpd.apache.org/docs/2.2/mod/core.html#virtualhost). It used to read <VirtualHost www.andycanfield.com:80<http://www.andycanfield.com:80>> but that is now "not recommended". /var/log/apache2/error.log shows this: ________________________________ [Sat May 17 10:33:12 2014] [crit] [client 49.49.233.112] configuration error: couldn't check user. Check your authn provider!: / [Sat May 17 10:33:12 2014] [crit] [client 49.49.233.112] configuration error: couldn't check user. Check your authn provider!: /favicon.ico [Sat May 17 10:33:13 2014] [crit] [client 49.49.233.112] configuration error: couldn't check user. Check your authn provider!: /favicon.ico ________________________________ What is 'favicon.ico". I don't have one anywhere. And I explicitly told you that, for this directory, don't check the user; let everyone in. How do we get apache 2.2 to route a request to one of several virtual computers based on what name is used to access the server, and to let EVERYONE in to that virtual computer? You broke my code!