Koozali.org: home of the SME Server
Contribs.org Forums => General Discussion => Topic started by: nefkho on July 10, 2009, 05:59:48 AM
-
hi,
i need help with forwarding webpage, i have sme 7.4 and xp with wampserver.
what i need is to have have:
http://mydominan.com/wampserver
i tried adding hostname local but the output is
http://wampserver.mydominan.com/
just like having ibays, any one can help me?
thanks,
-
We need some more info, I think.
It looks as though "wampserver" is a windows "apache, mysql, php" platform, so I assume it isn't running on your SME directly.
That leads me to assume that you have your SME server setup in server-gateway mode, with a "wampserver" setup on your internal network, and that you're trying to use "proxypass" to pass a specific ibay (or alternate domain) to the internal wampserver.
Is all of this correct so far?
If you want to get access to the wampserver from off-site using a different hostname than the one used by your SME server, have you configured that hostname in your public DNS?
-
I suggest you conigure a proxypass to your internal WAMP server: http://wiki.contribs.org/SME_Server:Documentation:FAQ#Proxy_Pass
-
thanks, mmccarn that is correct, but i dont need the wampserver to be accessible externally, all i need is if i access my wampserver locally, i would have to www.mydomain.com/wmapserver just like having an ibay would it be possible?
i have sme and xp for the wampserver.
:)
thanks,
-
I can think of three options:
ProxyPass
Figure out how to do what you want using Apache's ProxyPass directive (Apache docs here (http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass), SME Virtual Domain Howto here (http://wiki.contribs.org/SME_Server:Documentation:FAQ#Proxy_Pass), forum post with details for using ProxyPass to access Outlook Web Access here (http://forums.contribs.org/index.php/topic,40075.0.html))
ProxyPass will do what you want, but you'll end up needing some custom template fragments (I think).
Start by editing /etc/httpd/conf/httpd.conf; once your customizations work, put them into a custom template fragment named something like /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/95wampserver (the "95" is used by SME to determine where the template fragment will go in the output file; you may need to pick a different number to put the output at an earlier point in httpd.conf).
As long as you are modifying httpd.conf directly, you can easily undo any mods that cause problems using expand-template /etc/httpd/conf/httpd.conf; sv restart httpd-e-smith
http redirect
You could simply setup an http redirect in the "wampserver" ibay on your SME to redirect local users to the local address of the wampserver; put some code like that shown below into /home/e-smith/files/ibays/wampserver/html/index.html:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>nefkho net</title>
<meta http-equiv="REFRESH"
content="0;url=http://wampserver.mydomain.com"></HEAD>
<BODY>
You are being redirected to the wampserver
</BODY>
</HTML>
iframes
You may be able to do something similar using iframes:
<html>
<iframe src ="http://wampserver.mydomain.com" width="1024" height="768" </iframe>
</html>
-
thanks,
will test the last 2 options and see which one is better :)
Nef