Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Apache 2.2 to 2.4, includes no longer work for .shtml files |
|
Author |
|
grizfan
Joined: 23 Oct 2014 Posts: 2 Location: meridian
|
Posted: Thu 23 Oct '14 19:53 Post subject: Apache 2.2 to 2.4, includes no longer work for .shtml files |
|
|
I use the Apache server included with Mac OSX as my local development and testing environment for front-end web coding work. On the latest update to Yosemite (10.10), all of my .shtml files stopped processing my include virtual statements (or any SSI statements, for that matter). I'm not seeing any errors, but the includes just show up like commented out code in the HTML when I view source.
I've set up Apache to use a httpd-vhosts.conf for my various local dev servers (project1.local, test.local, etc...) Nothing seems to work. Here are some of the steps I've taken:
I've un-commented any reference to:
Code: | AddType text/html .shtml .html
AddOutputFilter INCLUDES .shtml .html |
every entry in my httpd-vhosts.conf file looks similar to this:
Code: | <VirtualHost *:80>
ServerName v12b.local
ServerAlias www.v12b.local
DocumentRoot "/Users/my-name/Sites/v12b"
ErrorLog "/private/var/log/apache2/v12b.local-error_log"
CustomLog "/private/var/log/apache2/v12b.local-access_log" common
ServerAdmin my-name@myco.com
<Directory "/Users/my-name/Sites/v12b">
Options Indexes FollowSymLinks Includes
AllowOverride All
Order allow,deny
Allow from all
Require all granted
AddType text/html .shtml .html
AddOutputFilter INCLUDES .shtml .html
AddType application/x-httpd-php .html
</Directory>
</VirtualHost> |
I always restart Apache after each change to the httpd.conf file, username.conf file and httpd-vhosts.conf files.
At this point, I've exhausted my limited Apache knowledge, so any help would be greatly appreciated.
thanks! |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Thu 23 Oct '14 21:27 Post subject: |
|
|
Is mod_include loaded? |
|
Back to top |
|
grizfan
Joined: 23 Oct 2014 Posts: 2 Location: meridian
|
Posted: Thu 23 Oct '14 21:51 Post subject: |
|
|
Thank You!!!! That was the missing bit. I feel silly for missing that, too. I uncommented LoadModule include_module libexec/apache2/mod_include.so in the httpd.conf file, restarted Apache, and now everything works.
Again, thank you so much for helping me with this |
|
Back to top |
|
|
|
|
|
|