Bootstrap 3.0 not working with Apache 2.4?

I just installed Centos 7.0, which comes with Apache 2.4. My boot applications do not display properly. Specifically, bootstrap components do not display correctly. For example, on a button with class = btn-primary, where the color is blue and the text is white, the text becomes black with Apache 2.4. There are many other problems.

My question is: does anyone else have this problem? Is there such a thing as a backward compatibility flag for html tags? I am Googled and could not find any other links.

Thank you for sharing your results.

+7
apache twitter-bootstrap-3
source share
2 answers

We had the same problem. It took us 5-6 hours to debug. This was the mapping of bootstrap.css aliases in the welcome.conf file in the /etc/httpd/conf.d/ directory

Alias /.noindex.html /usr/share/httpd/noindex/index.html Alias /css/bootstrap.min.css /usr/share/httpd/noindex/css/bootstrap.min.css Alias /css/open-sans.css /usr/share/httpd/noindex/css/open-sans.css Alias /images/apache_pb.gif /usr/share/httpd/noindex/images/apache_pb.gif Alias /images/poweredby.png /usr/share/httpd/noindex/images/poweredby.png 

Just delete / comment out all / css / lines or disable welcome.conf. I don't know if this only comes with the CentOS package or httpd. It was a stupid thing.

The same thing happened to us with / error / alias.

+10
source share

I found a problem. The file bootstrap.min.css is not compatible with APache 2.4. I have no idea why, but when I switched to the non-minified version, everything worked correctly.

+3
source share

All Articles