Solved

Apache server setup

Posted on 2000-03-29
1
527 Views
Last Modified: 2013-12-15

I have setup Apache server on Red Hat Linux release 5.2 (Apollo). If I browse that system through a browser, I can see  webpages if it is in HTML extension. If it is in HTM extension, whole HTML source code will be displayed on the browser instead of page.

How to correct this?
0
Comment
Question by:vatsasri
1 Comment
 
LVL 1

Accepted Solution

by:
dserna earned 50 total points
ID: 2667533
The config file that you want to check is mime.types which can be found in your Apache conf directory. Edit the file and add htm to the following line:

text/html           html htm

save your changes and restart Apache. Reload the page in your browser, if you use Explorer or Netscape, make sure that you do a <SHIFT> reload or else you may reload a cached copy.
Apache should now recognize it as HTML now

Hope that helps
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question