logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache 2.2.2 VirtualHost
Author
jellybeanz



Joined: 22 Apr 2006
Posts: 4

PostPosted: Sun 23 Apr '06 19:52    Post subject: Apache 2.2.2 VirtualHost Reply with quote

I'm using VirtualHost to different kind of services, like webmail etc... in my httpd.conf I had this:

<VirtualHost *>
ServerName mail.domain.com
DocumentRoot "c:/web/mail"

ScriptAlias /modul/ "c:/Program Files/Modul Directory"
AddType application/some_module .html
Action application/some_module "/modul/modul.exe"
#AddType application/x-httpd-php .html
</VirtualHost>

This was working fine with apache 2.0.53, but not with 2.2.2. When I enter the address, it's trying to download some kind of .exe file (I think modul.exe). When I change AddType application/some_module .html to AddType application/x-httpd-php .html, because html files are basicly php files, I get "function xxx not found" error. This function isn't in the html files. I'm pretty sure that module.exe file tries to load some dll files, but can't find them. Should I add some kind of "baseurl"? html files and executables are located in different directories. Is that a typo or do I have to load some modules to solve the issue?
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Sun 23 Apr '06 21:36    Post subject: Reply with quote

Not sure what you want to achieve.

Are the vhost directives you posted above, exactly the same in your httpd.conf ? When you post what you have in the .conf, maybe it is clear to me.

I assume you do not have any error in the apache error.log.


And what is the "xxx' in "function xxx not found"?

I am using also Scriptaliases, but have no problem with it.

Steffen
Back to top
Jorge



Joined: 12 Mar 2006
Posts: 376
Location: Belgium

PostPosted: Sun 23 Apr '06 23:30    Post subject: Reply with quote

I think you problems lies here:
Action application/some_module "/modul/modul.exe"

Watch out by using ports of a 2.0.x conf in 2.2.x lots ofthings do'nt work or work diferently
Back to top
jellybeanz



Joined: 22 Apr 2006
Posts: 4

PostPosted: Wed 26 Apr '06 8:03    Post subject: Reply with quote

there isn't any problems in error.log. Problem is in my script alieas. and that xxx in the error is an php error, and a teplate function. It was working without any problems in apache 2.0.53. I'm still using the httpd.conf file for 2.053. But I had to chance "LoadModule" options, because of change of module names. and module.exe is a php interpreter. I've tried not to use that, but it seems module.exe calls som other dll files (from the same directors)

Jorge, I'm not sure what you mean by using ports.
Back to top


Reply to topic   Topic: Apache 2.2.2 VirtualHost View previous topic :: View next topic
Post new topic   Forum Index -> Apache