Configure IIS on Small Business Server 2003 to communicate with Apache in local network - iis-6

I have an IIS 6.x running on my windows 2003 sbs (Computer A), that is reachable from the internet on port 80 and the SSL port.
I have a second machine (Computer B) running in my local network, where I have running an Apache webserver with several application I want to make accessible from internet.
I added IIRF (Ionics Isapi Rewrite Filter) to the IIS and can reach the start pages of my applications (MediaWiki, tracks and so on). if i try to log in at my personal MediaWiki instance i am getting following error "HTTP Error 404 - File or directory not found."
ps: my IIRF.ini file
RewriteLog c:\logs\iirf
RewriteLogLevel 1
IterationLimit 10
MaxMatchCount 10
RewriteEngine ON
StatusInquiry ON
ProxyPass ^/(.*)$ hxxp://xxxIPinLANxxx/$1
ProxyPassReverse / hxxp://xxxIPinLANxxx/

Related

xampp Apache redirect to tomcat

Using Xampp on my Windows Server I recently installed some web apps using tomcat. Using the Apache to access phpMyAdmin. After deploying I noticed I access the tomcat webapp using a URL like this: domain.com:8080/someapp/.
I do not like that but the internet says its good for some security reasons so I did not change the port from 8080 to 80 in the server.xml.
But I want the end-user not to access my app using :8080 in the URL.
How can I redirect my Apache to Tomcat witgout losing my access to phpMyAdmin?

Glassfish - Domain wise redirection to application

I am running Glassfish Server on Linux 6 for my Oracle Apex applications running on Port 8080 and 8181(for https).
now, suppose my domain is mydomain.com,
and when I access
a.mydomain.com -> it should be redirected to application 1 (i.e a.mydomain.com:8080/apex/f?p=1)
b.mydomain.com -> it should be redirected to application 2 (i.e b.mydomain.com:8080/apex/f?p=2)
and so on...
if it is hard to figure out with Glassfish, I can also move to Apache Tomcat if required.
Any advice/idea would be greatly appreciable.
I don't know Glassfish, but you might try ProxyPass inside your virtual host config
ProxyPass / http://a.mydomain.com:8080/apex/f?p=1
Similar for the b.mydomain.com domain.
If you really want a redirect, i.e. the browser's URL changes, use Redirect instead
Redirect / http://a.mydomain.com:8080/apex/f?p=1

Images from a specific directory not delivered via SSL

I am running a Wicket web application in Apache Tomcat on two separate servers. When the application runs on server #1, all of the images are delivered without errors or warnings on both http: and https:, so I don't think there is a problem with the html file. When I run the same application on server #2, all of the images are delivered over http:, but some of the images are giving 404 Not Found when delivered over https:.
For example:
/path/image1.png and is delivered successfully over http and https.
/path/some/sub/directory/image2.png is delivered over http, but not delivered over https.
More specifically, if I request https://domain/path/some/sub/directory/image2.png, I get a 404 error. But if I specify the port and request https://domain:8443/path/some/sub/directory/image2.png the image is delivered.
As the images both work on the first server, I suspect there is some problem with my Apache configuration on the second server. I can't find any directives specific to the functioning or malfunctioning directories in the apache2.conf, httpd.conf, or .htaccess files.
Where should I look to find the directive that allows image1 to be delivered successfully so that I can copy the rules for image 2?
:::EDIT:::
I found the following directives in extras/httpd-ssl.conf. We are using varnish to cache static content.
# Terminate SSL here and pass everything to Varnish
RequestHeader set X-Forwarded-Proto "https"
ProxyPreserveHost on
ProxyPass / http://128.138.128.89:80/
ProxyPassReverse / http://128.138.128.89:80/
This is running on Linux Mint on Oracle VirtualBox if that matters.

Unable to connect jsjac to openfire

I am trying to connect jsjac to openfire server. with very little success of course.
I have a apache server which redirects requests to my front end jsps hosted in a tomcat within eclipse and also binds requests to XMPP server.
Here is my virtual host mapping in config file:
ServerName ualbanybook.com
AddDefaultCharset UTF-8
ProxyRequests On
ProxyPass /miniFaceBook http://localhost:8080/miniFaceBook
ProxyPassReverse /miniFaceBook http://localhost:8080/miniFaceBook
RewriteEngine on
RewriteRule /http-bind/ http://localhost:8181/http-bind/ [P]
The next image shows both the request url and error code on trying to register.
The next snapshot of snapshot of chrome dev tool shows that the request to register was indeed sent and the browser reciEved a response 200 OK.
I have configured port 8181 for http-binding in openfire.
Any pointers/help will be greatly appreciated. thanks.
All these settings started later after clearing chrome cache. Also connected ijab later.
These settings can also serve as a guide to someone looking to setup openfire to a web client.

How to deploy a Play Framework Site to an Apache based domain

I have tested Play now for quite a while and everything is set up locally. Now I came to the next level:
I need to deploy may test project to an exisiting domain. I have searched the web and tried several things, but none of them helped me deploy my web application.
Let's say that I am a n00b, and I am. I registered myself a domain via www.antagonist.nl.
My domain is wwww.tus***.eu. I have no right to change anything on their 'server', I guess.
But how can I deploy a Play Framework Application\Website on such a domain??
Thanks all for helping out.
Hm. What you registered is a domain with webhosting for PHP/Mysql web sites. What you are looking for is a Play! hosting service. You cannot deploy a Java solution to a PHP Server.
You will have to host your play application on one of those services and then redirect your domain via DNS redirection toward the platform hosting your app. The DNS modification should be possible via your registar (antagonist.nl) but that procedure is specific for each registrat so I can't help you.
By the way, here are a few Play! hosters :
Playapps
Heroku
Cloudbees
If you have access ( ssh access ) to the server ( apache, httpd ) where you intend to deploy to, then once you register your domain say using Godaddy, have the A (host) to point to the IP of the hosting server ( where your application is runnnig )
host = #
ip = "the ip of the hosting server"
In the server you will need to navigate to the file /etc/httpd/conf/sites-available/
or the equivalent in apache2
and change the file corresponding to your site to this type of file. save the file.
<VirtualHost *:80>
ProxyPreserveHost On
ProxyRequests Off
ServerName www.yourdomain.com
ServerAlias yourdomain.com
ProxyPass / http://localhost:9000/
ProxyPassReverse / http://localhost:9000/
</VirtualHost>
And then restart the server, your application should run just fine.
Later you can have other applications running on other ports, just do the same and change the corresponding fields, with port numbers also changed.
These guys are doing the same for other applications that are running on other ports but 80
StackOverflow answer : Apache redirect to another port