logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 


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

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.




apache 2.2+Sambar Servers (Both running on same machine)

 
Post new topic   Reply to topic    Apache Forum Index -> Other Software



View previous topic :: View next topic  
Author Message
shaggy



Joined: 15 Nov 2005
Posts: 81
Location: Dundee, Michigan

PostPosted: Wed 05 Jul '06 3:54    Post subject: apache 2.2+Sambar Servers (Both running on same machine) Reply with quote

I don't know if this belongs in apachelounge or Steffen's other site for Sambar users. Which I have been there rather frequently within the last couple of days. Now I've been racking my brain on this one. I know it's tricky and I know it can be done. I know u can run two webservers on the same machine. I am running intranet.

I am trying to run sambar6.4 and apache 2.2 on the same machine. Any chance anybody could help me out on that one?

Also, I've got apache 2.2 configured to do this. (I think this belongs at Steffen's Sambar site). I would like them both to share the same services (i.e.;python, perl, php, etc.). How do I do that?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 6340
Location: Germany, Next to Hamburg

PostPosted: Wed 05 Jul '06 11:41    Post subject: Reply with quote

You have to run sambar on a different Port and call the needed pages with reverse proxy.
Back to top
shaggy



Joined: 15 Nov 2005
Posts: 81
Location: Dundee, Michigan

PostPosted: Wed 05 Jul '06 22:27    Post subject: Reply with quote

James Blond wrote:
You have to run sambar on a different Port

I know how to do that one but......

James Blond wrote:
and call the needed pages with reverse proxy.

Reverse Proxy how do that one?
Config on what Sambar or Apache?
Where can I find documentation at on how to do that?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 6340
Location: Germany, Next to Hamburg

PostPosted: Wed 05 Jul '06 22:38    Post subject: Reply with quote

Config the reverse proxy on Apache

http://www.apachelounge.com/viewtopic.php?p=301
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypassreverse

some manual wrote:

From a client perspective, a reverse proxy looks just like a standard Web server. It doesn't require any special configuration to
operate (and if it did, it wouldn't be anywhere near as useful). The only real requirement is to ensure the forward proxy is
switched off, which is done using the ProxyRequests directive:ProxyRequests Off
ProxyPass /marketing http://marketing.mcslp.com
ProxyPassReverse /marketing http://marketing.mcslp.com

You can also stop subdirectories of a directory being passed through by using an exclamation mark (!) as the destination URL. For
example, to reverse proxy /marketing, but not /marketing/contact you would use:

ProxyPass /marketing/contact !
ProxyPass /marketing http://marketing.mcslp.com
Back to top
shaggy



Joined: 15 Nov 2005
Posts: 81
Location: Dundee, Michigan

PostPosted: Fri 07 Jul '06 17:53    Post subject: Reply with quote

James Blond wrote:
Config the reverse proxy on Apache

http://www.apachelounge.com/viewtopic.php?p=301
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypassreverse

some manual wrote:

From a client perspective, a reverse proxy looks just like a standard Web server. It doesn't require any special configuration to
operate (and if it did, it wouldn't be anywhere near as useful). The only real requirement is to ensure the forward proxy is
switched off, which is done using the ProxyRequests directive:ProxyRequests Off
ProxyPass /marketing http://marketing.mcslp.com
ProxyPassReverse /marketing http://marketing.mcslp.com

You can also stop subdirectories of a directory being passed through by using an exclamation mark (!) as the destination URL. For
example, to reverse proxy /marketing, but not /marketing/contact you would use:

ProxyPass /marketing/contact !
ProxyPass /marketing http://marketing.mcslp.com

Sorry for my stupidness. I've been attempting to do this now for almost a week. I now under the concept behind reverse proxy and how to set it up (thank you google Very Happy ) But I have no clue on where it goes in httpd.conf. Could someone give me an example and where it goes at in httpd.conf? I have tried all over the place in there. Sorry for my noob in mod_proxy and in mod_rewrite.
Back to top
Steffen
Moderator


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

PostPosted: Fri 07 Jul '06 19:07    Post subject: Reply with quote

Please tell me what of Sambar you want to Reverse Proxy ?

Steffen
Back to top
shaggy



Joined: 15 Nov 2005
Posts: 81
Location: Dundee, Michigan

PostPosted: Fri 07 Jul '06 22:54    Post subject: Reply with quote

Steffen wrote:
Please tell me what of Sambar you want to Reverse Proxy ?

Steffen


Ok here's the problem I'm having.
Installed Apache2.2 just fine problem left apache's port number to 80
Installed Sambar Server 6.4 just fine changed the port number
Browser point to http://localhost:port#/ <---for Sambar. No problem page loads up just fine.

Problem: When I click on any of the buttons that say "login" It flips back to apache saying Object not found! Error 404
For Example:
http://localhost/session/adminlogin?RCpage=%2Fsysadmin%2Findex.asp
should be:
http://localhost:port#/session/adminlogin?RCpage=%2Fsysadmin%2Findex.asp
In red is the problem.
Now apache log error shows:
Code:
[Sat Jul 08 03:49:39 2006] [error] [client 127.0.0.1] File does not exist: C:/apache/Apache2/htdocs/session, referer: http://localhost:82/
[Sat Jul 08 03:49:39 2006] [warn] [client 127.0.0.1] No uri found, referer: http://localhost/session/adminlogin?RCpage=%2Fsysadmin%2Findex.asp
[Sat Jul 08 03:49:39 2006] [warn] [client 127.0.0.1] No uri found, referer: http://localhost/session/adminlogin?RCpage=%2Fsysadmin%2Findex.asp

Been trying to work on this error for awhile now. Next time I get this error I've got a six pack in the ice box to help me out.
Back to top
Xing



Joined: 26 Oct 2005
Posts: 38

PostPosted: Fri 07 Jul '06 23:14    Post subject: Reply with quote

You are talking about the Sambar Index page ? I never used that.


X
Back to top
Xing



Joined: 26 Oct 2005
Posts: 38

PostPosted: Fri 07 Jul '06 23:19    Post subject: Reply with quote

Just tested it and you are wright, that page (docs/index.htm) does not insert the port#


You can just use:

User Desktop : http://localhost:81/sysuser/
Site Manager : http://localhost:81/sysmgr/
System Administration : http://localhost:81/sysadmin/


X
Back to top


Post new topic   Reply to topic    Apache Forum Index -> Other Software
Page 1 of 1