Apache 2.4.62 placing web pages for virtual hosts in Downloads folder

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there

 

We currently use Apache 2.4.12 (Win32) with PHP 5.6.10 and need to upgrade. I am working on getting Apache 2.4.62 running but have a problem with the  named virtual hosts which work fine under 2.4.12. The web pages for these hosts are being placed into my Downloads folder instead of being displayed.

 

Troubleshooting:

 

I had to make adjustments in my vhosts.conf file, removing some directives in the <Directory> blocks which are no longer valid.

It appears to be the case that the top Server root has to defined as follows

 

Define SRVROOT "c:/Apache24"

 

ServerRoot "${SRVROOT}"

 

This made me wonder if I needed to replace “c:/Apache” in DocumentRoot specifications with “${SRVROOT}”, but this made no difference and the Apache docs don’t indicate this is required. The web pages still get placed in my Downloads folder.

 

In 2.4.13 you have to use the NameVirtualHost directive in httpd.conf  but this has no effect in 2.4.62, as an error message reported, so I commented it out.

 

I tried extensive searching of Google, but the only thing I found that was pertinent was this post

 

https://stackoverflow.com/questions/35057325/virtual-host-in-apache-downloads-the-file-instead-of-displaying-it

 

which went unanswered.

 

 

I have not found anything in the virtual host setup documentation, such as

 

https://httpd.apache.org/docs/2.4/vhosts/examples.html

 

which gives me any clues as to why the web pages are being downloaded instead of displayed.

 

 

I have sent an email to   users-faq@xxxxxxxxxxxxxxxx to find if there is a FAQ that might reference this issue. The response was:

 

“Hi! This is the ezmlm program. I'm managing the users@xxxxxxxxxxxxxxxx mailing list.

 

FAQ - Frequently asked questions of the users@xxxxxxxxxxxxxxxx list.

 

None available yet.”

 

I searched in Google's usenet for virtual host and apache 2.4.62 but nothing related to this issue shows up.

 

I tried to see if anything related to the subject “virtualhost” was referenced in the archive for this list using this email and got this response

 

“-----Original Message-----

From: users-help@xxxxxxxxxxxxxxxx <users-help@xxxxxxxxxxxxxxxx>

Sent: October 23, 2024 2:48 PM

To: Bill Wiest <Bill.Wiest@xxxxxxxxxx>

Subject: users Digest of: thread.virtualhost

 

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

 

Sorry, that message is not in the archive.”

 

 

I even thought that perhaps the vhosts were not being set up at all, so I tried to telnet to each on port 80. They exist!

 

Each host is set up like the below in vhosts.conf. Some have a Serveralias specified, otherwise identical to the below.

 

<VirtualHost *:80>

 

Servername localhost

DocumentRoot "C:/Apache24/htdocs"

 

<IfModule dir_module>

    DirectoryIndex index.phtml index.php index.html

</IfModule>

 

 

ErrorLog "c:/Apache24/logs/localhost_error.log"

CustomLog "c:/Apache24/logs/localhost_access.log" combined

 

<Directory "c:/Apache24/htdocs">

        AllowOverride AuthConfig Options Limit

        Options None

</Directory>

 

</virtualHost>

 

 

 

I’ve used Apache, on both Linux and Windows boxes for many years and have never come across thi issue. Is it a bug in version 2.4.62? Am I just brain-dead and missing something obvious?

 

Any help is appreciated!


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux