Apache issue with "AddType" line.
I've recently installed the LAMP platform on my Fedora machine (Linux apache mysql php) and I am having a weird issue when I type "localhost" in my browser. When I do this, I receive the download pop up that says
"You have chosen to open which is a application/x-httpd-php from http://localhost I can only assume it is refering to the "AddType" line that is in my httpd.conf file that instructs the server to process php files as a php script Code:
<IfModule mime_module> Within the httpd.conf file, I have ServerName designated as the 10.3.0.99 private address since this is a machine on a private network at work. When I enter the loop back address 127.0.0.1, I receive the proper "it works" page. My /etc/hosts file looks correct: Code:
# Do not remove the following line, or various programs Not sure why the private ip address and not the Localhost name is returning the "IT works" index.html. Anybody have any idea where I should look? |
Quote:
Code:
::1 localhost6.localdomain6 localhost6 Code:
::1 development localhost.localdomain localhost My /etc/hosts looks like this: Code:
127.0.0.1 development localhost.localdomain localhost I. e. I have the word "development" (the name of my system) before "localhost.localdomain". However, if I just go to Code:
http://localhost Code:
http://localhost/ Hope this helps |
I rebooted the machine, without making any changes, and the issue corrected itself.
Not sure what the problem was. |
All times are GMT -5. The time now is 03:36 PM. |