Ubuntu Servers :: Configure Apache2 To Proxy That Folder To Jetty Using Mod_proxy?
Mar 20, 2010
I have a php app set up in the default virtualhost, and want to add a Grails app. The grails app runs on [URL] and I want to configure apache2 to proxy that folder to Jetty using mod_proxy.
Module is enabled
Code:
$ sudo a2enmod proxy
Module proxy already enabled
[code]....
Quote:
[Sun Mar 21 00:14:56 2010] [warn] proxy: No protocol handler was valid for the URL /mailscan. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule. My apache2.conf contains no LoadModule lines, and a2enmod says it's already enabled. Does Ubuntu Desktop (Karmic) use the DSO versions of modules, or did I miss something else? I'm aware I should also use mod_proxy_html to make sure only the "portless" version of the address is outputted, but I can fix that later!
i'm using apache2 prefork as proxy (mod_proxy) and i'm facing some performance problems such freezes , for instance the entire server blocks and becomes totally unresponsive after several requests.
at first i thought that the system is running out of memory so i tweaked the mpm config and reduced the number of allowed processes that can start concurrently , however the problem still persists..would mpm worker serve better than prefork ?
I seem to be having a problem with mod_proxy and https websites. A simple connection to port 80 works fine but all calls to 443 fail.
I had a look at my firewall but can't see anything that would block port 443, although I get no tcpdump traffic on that port on the deb01 client when I try and connect to it. I disabled the firewall but still no luck.
My configuration consists of 3 VMs (KVM) each running a different website.
I get the following error when connecting to ssl deb01
Code: An error occurred during a connection to deb03.example.com.
SSL received a record that exceeded the maximum permissible length.
Dom0 is having public IP. I read a lot of blog and tutorials about name based and IP based hostings and also about mod_proxy. But I am unable to do.
Here is what I am trying to do. I have a webserver on public IP.Which is running Xen on it. There are 4 Guest Operating systems installed on top of Dom0 which are Dom1,Dom2,Dom3,Dom4 These are application servers which are going to serve the requests that come from the main server.Which is Dom0.
All I see is "It works" on all 4 of the hosts. On my LAN on any machine on same subnet if I do [url] of Domu1 message comes
Code:
in browser from LAN gives me a message
Code: It works.
What do I need to do on Dom0 so that requests are forwarded to the appropriate DomUs apache2 is running on all of them including Dom0.Some one suggested me to go for ReverseProxy in Apache2.
we have an ubuntu server (10.04 LTS) with apache2 (2.2.9) and mod_proxy + proxy_balancer enabled.Reverse proxy works greatly, but I can't get load balancing working. Apache connect always to first member.
My configuration is as follow:
ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> <Proxy balancer://test>
I have a server acting as a proxy to a couple of IP cameras on my local network. The IP cameras require HTTP-Authentication (Basic) but I want the outward facing Apache server to automatically log in without prompting the user for a login.
My current configuration is:
Code:
That works as a proxy but still asks for a HTTP Auth login. Can I get Apache to pass the login details to the IP cameras so users can just hit up the proxy and view the camera without having to log in?
I'm working on setting up a hosted OSS app on a VPS and have a question about doing some proxying. I have Centos 5.5/Apache 2.2 running on 2 VPS's, in different locations, accessible from the net. One of these hosts the app itself, the other will be used as a web portal where the end user will login to auth and then be able to access the app. Now, since I don't wan't access to the app server from the world at large, I want to firewall it and only allow access from the portal machine. So what I think I need to do is set up a reverse proxy with mod_proxy, and then if the end user auths forward them to a specific url on the app server.
So when they connect to [url] and log in I need them to be redirected to app.machine.com/theirdir
So the questions I have are:
1) Can this be done? If so, is mod_proxy the way to do it? Configuring Apache isnt a problem, but I havent worked with mod_proxy.
2) If this does work, will it also work with SSL?
3) I've seen a few small tutorials on the net, but not doing exactly what I want to. They all use the reverse proxy with a public IP connecting to a server with a private IP behind a firewall, while I have public IP's on both ends. From a network standpoint I know this shouldn't matter, but I'm not familiar with mod_proxy's particulars itself.
I applogies if this doesn't fit or if this is right in from of my face but, I'm a bit confused.I'm trying to configure a few VirtualHost in apache2. I currently a default virtualhost and 2 other sites. No matter which domain I visit I still get the default page.. My Confusion is, I've been reading and some places seem to say that my virtual hosts should be in /etc/apache2/sites-enabled/*Config File* and other seem to say it should be in /etc/apache2/httpd.conf what the awsner... I've tried both ways with no success .... If I put NameVirtualHost in httpd.conf I get an error saying their are no virtual hosts.
have a web application that runs fine.Whenever I run jetty manually the application runs ok. This is what I do:sudo java -jar start.jarThe application is located within the webapps directory correctly and the required jar files are within /usr/share/jetty/lib.But when I run jetty as a service:sudo service jetty startThe server starts, but the application does not respond. There is no error in the output. This is very strange, isn't it
i have set up my Apache2 server and i have this question. Because my netbook (eeePC 701 4g surf) has a very small SSD Drive (4GB) is it possible to set the default directory of apache to be an external USB Drive? And if it is, how?
I've recently migrated my office PCs to ubuntu. My server doesn't server any big purpose but to provide Internet Connection to the rest of the nodes. Things were quite easier during the windows era using ICS.
Even in Ubuntu we were able to do it using the "shared network" option, simple & straight forward. But things got complicated only after installing "squid". Needless to say it brought in a lot of add ons as far as the http proxy serving is concerned & we are enjoying a better internet(http only) connectivity without any doubt. But we are not able to use our email clients, MS Outlook or Thunderbird
But to best of my knowledge squid strictly is a http proxy hence doesn't support handling requests on ports other than 80. (465 & 995 in my case)
Now I have two queries, 1. Can "Squid" really be used to do what I want here??? using iptables, port forwarding or any other mean & 2. Can any one suggest a good pop3/imap proxy as good as squid is.
I have configured router(192.168.1.2) to serve only one machine with IP - '192.168.1.6' and set up SQUID proxy on '192.168.1.6'. I have defined some rules(ACL) regarding connections to internet on SQUID proxy.
I changed the Gateway of rest of machine (192.168.1.60 - 192.168.1.69) from '192.168.1.2' to '192.168.1.6'.
The policies which I defined in SQUID is working properly but 'Linux Evolution mail' client is not fetching mails.
Is I have to do any other settings on 'Linux System' or 'Evolution mail client'.
I am bit lost with configuring my apache2 web server. From the book I am using it says for me to configure apache2 to support PHP I need to execute "./configure --prefix=/usr/local/apache2 --enable-so". From what I can determine Apache2 is located in "/etc/init.d/apache2" folder. I used a Ubuntu 9.04 distro (I386 Server Ed.) to install the server. I added "Kubuntu-desktop" for viewing. Then performed web upgrade to Karmic 9.10. All went well !! Question is; Where do I execute a command to enable PHP support? Once again, the command is to look something like "./configure --prefix=/usr/local/apache2 --enable-so"
I recently installed Apache on Lucid Lynx (Macbook 1.1) using the following tutorial: [URL] Everything appears to work correct except that when I browse http://localhost/ in Firefox, I cannot see any of the directories. Although, files such as html documents are visible. When I view the /var/www directory using the default graphical file browser, all of its child directories have Xs over their icons. When I attempt to open the directory "js", the following error message displays:The folder contents could not be displayed. You do not have the permissions necessary to view the contents of "js".
I figured this was preventing Firefox from viewing the directories. So I launched it with the "gksu" command to see if it would help. I still couldn't see directories when browsing http://localhost/ I'm basically trying to achieve functionality identical to the MAMP local server for Mac OS X. I'm about to start a LAMP project for a new client so having this up and running is important!
I set up mod_proxy in order to get rid of :8080 now I cant access phpmyadmin through the browser. what is the quickest way to turn off mod_proxy and access phpmyadmin? I would like to optimize the tables and back up the sql file. I just need to turn it on for a bit, and then enable mod_proxy again.Right now, if I got to localhost/phpmyadmin, it redirects to the main application.
I have used a2enmod, and added sudo a2enmod proxy sudo a2enmod proxy_http sudo a2enmod proxy_ajp
I'm running Fedora 10 with Apache 2.2.11 and I noticed something a little strange going on. This morning, logwatch alerted me to the following concerning apache:
Code:
Sure enough, the apache access log file shows the following:
Code:
mod_proxy is disabled in the apache config file anyway (default mod_proxy commented out):
Code:
When I tried to access my web server to check, it was down, and I got the following when checking its status:
Code:
So I checked the apache error logs and found the following:
Code:
There's nothing wrong with line 188 of the config file:
Code:
It seems fairly apparent that there has been an attempt to use my web server as a proxy to gain access to other servers, so I have a couple of questions:
1) I presume that the attack failed, since mod_proxy was disabled?
2) Why did my web server crash? (It has never done this before). It seems very suspicious that it tried to restart, but failed to load proxy_module modules/mod_proxy.so on the same night that someone had attempted to use mod_proxy. I have since successfully started apache without making any configuration changes.
3) Do I need to worry that any part of my system has been compromised?
I am trying to create solution with Reverse Proxy, mod_proxy and mod_proxy_connect. I haven't really used this before so I am just curious if I am doing it right. I have attached what I am trying to do plus a copy of the config:Here is my current requirement
We are going to have 3 servers, right now our top level domain is[URL] We have an E-Commerce Server in Production Right now that already has an SSL Cert on it so right now the production server for E-Commerce is [URL] However, as we are growing, we don't want to use subdomains, so instead, we want to use the reverse proxying feature on apache. We are running mostly windows servers and IIS for the E-Commerce, CMS and the Wordpress Server. Assume the following -
Apache Proxy Server 10.100.10.60 E-Commerce Server 10.100.10.3 (www.ooolalashop.com) Content Management Server 10.100.10.3 (cms.ooolalashop.com) Word Press Blog Server 10.100.10.3 (blog.ooolalashop.com)
1) We need the following mapped
[URL] - maps to ecommerce server - since ssl cert is going to stay on the server, on the proxy we just create a static host that points to the e-commerce server
[URL]
All of these should be pretty easy to reverse proxy
2) We need to be able to proxy the SSL connection or have it pass through to the server on the back end with the domain [URL] right now we are getting some errors Here is the error I get with SSL [Sun Aug 22 01:51:30 2010] [warn] proxy: No protocol handler was valid for the URL /. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
I want to share files over the web with only a few people and limiting them to certain folders. I have been doing a remote access (ssh) to my server to access it from a pc on the local network. I later found out the same program doing ssh (open_ssh) was also doing sftp, great I could do both with one system account. Problem I couldn't find away to configure another user to go over the web with limited folder access without messing up my user to access the pc. I tried ftps by using vsftpd, I couldn't get chroot set up correctly or even log in. So my question is what program and/or protocol should I use to do secure ftp over the web?
I have a webserver apache2 on debian Lenny. I am using gateway as Dom0 and rest of the operating systems are different Dom's .Using a xen virtualization setup.
I want to have a few websites http://site1.myserver.com http://myserver.com and http://myserver.com/site2 I did set up a reverse proxy environment for doing this.
Code: Dom0 LAN IP ----> 192.168.1.1 Gateway (where reverse proxy is set) DomU1 LAN IP ----> 192.168.1.13 (here myserver.com and site1.myserver.com both are hosted.) Domu2 LAN IP ----> 192.168.1.17 myserver.com/site2 is here.
Configuration on Dom0 of sites site1.myserver.com and myserver.com Virtual Host Configurations on Dom0 in /etc/apache2/sites-enabled/myserver.com (on gateway)
Code: <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName myserver.com ProxyRequests off <Proxy *> Order deny,allow Allow from all .....
I'm unable to configure the apache2 with python support. I have done the configuration in the following method, but unable to start the python cgi support: I have installed the libapache2-mod-python it has installed python.load in the mods-available directory. In the apache2/sites-available/default file, I have added the following lines.
[code]...
when I request for a python script in the py folder. I get a 404 Not found error.
I intergrated the CAS on Liferay, it is working fine for single service. Now my goal is to configure Proxy Authentication on CAS to authenticate set of Liferay Services. I used the following services for proxy authentication, but unable to validate it.
I recently installed Ubuntu 9.04 and I'm having issues with apt-get and proxy configuration. Upon initial install I attempted to set the proxy configuration through the GUI and opted for the "manual proxy" configuration. Part way through entering the proxy server name I decided to use the "automatic proxy" configuration option instead. I checked this radio box and entered the URL to automatically configure the proxy information.
At this point everything seeemed to work fine. I ran "apt-get update" and, partway through the update process, I decided to abort the update by pressing control-c. Now I am unable to use apt-get to perform any updates. It gives me several errors stating it is unable to resolve "www" (which is the partial name of the proxy server I began to enter before deciding to use the auto configuration option).
No problem I thought...I'll just go into "/etc/apt/apt.conf" and change the name. Except the name in the apt.conf file is correct. I brought up "synaptic" and changed the network configuration there (as it had the same issue) and now synaptic works fine. I am also able to use the GUI Update Manager to update my system. Still apt-get update fails. Here is one of the error lines it spits out:
I'm using debian 5 x64 with xfce.Is there a way to configure (start/stop/restart) services (especially Apache2, mySQL and PHP) using a graphical or cli tool? I tried to use sysv-rc, sysv-rc-conf, rcconf and rc-conf in the terminal but Bash didn't find them (Although Synaptic show that sysv-rc is installed).
how-to configure squid proxy server. I still haven't been able to find a solution. I want to set up squid as a open http proxy server. So people from other networks can connect through the proxy without having to login.Do I have to use iptables to reroute http traffic to squids proxy port? I have forwarded the port in my ISP modem so I know thats working, its the squid config that has flaws or iptables locally.
I think my apache2 is owned and running as root. I don't know if I installed it like a noob a while ago but I would like to secure it now especially since I just figured out how setup virtual hosts and I may want to eventually let people host sites on my server and I obviously don't want to have to give them root access. How can I confirm that apache2 is running as root and how do I take it away from the root user?
I am using Ubuntu Server 10.04 64bit. I am getting an Apache2 start up error after I setup my certificates and configure Apache2 for HTTPS. At the point on start up where I need to type in my certificate pass code I get a lockup due to the Apache2 process being in a hung state. I reboot if needed and switch to console tty2. When I type in the command.
Code:
I get the following error.
Code:
To correct the problem I do this.
Code:
From the output of the command above I look for the apache2 process and make note of its process ID. Then, I kill that process ID. For example, the command below has an apache2 process ID of 1131.
Code:
Next, when I run this command.
Code:
The apache2 server starts up and asks for my certificate password, accepts it when I type it in, and runs perfectly fine afterward.
Fortunately this instance of Ubuntu Server is running inside a VMWare virtual machine. I can just "pause" the virtual machine if I need to rather than going through this crude and tedious start up process too frequently.
Crude and tedious are feelings I'm having too frequently lately with Ubuntu Server.