Hot answers tagged

9 votes

Proxy Error 502 "Reason: Error reading from remote server" with Apache 2.2.3 (Debian) mod_proxy and Jetty 6.1.18

This error can also occur if you don't end your proxy url with a /. Either both paths should end with a / or neither.
user avatar
  • 221
5 votes

Jetty JMX setup for remote access

Sorted it, needed to manually add this in into the start.ini --module=jmx-remote ## JMX Configuration ## Enable for an open port accessible by remote machines jetty.jmxrmihost=localhost jetty....
user avatar
  • 397
4 votes

Jetty 9 support for TLS_FALLBACK_SCSV

It's simply not implemented in Java yet – it is planned for Java 9 though. You can follow #JDK-8061798 for updates.
user avatar
  • 213
4 votes

How can I setup SPDY with Jetty behind Amazon's ELB?

SPDY is supported now on ELB with use of proxy_protocol. It's a bit fiddly to set up however, you need to add the ProxyProtocol policy to you ELB and set the listeners to TCP 443 -> TCP 443 This ...
user avatar
4 votes

Configuring Jetty as a service - how?

For CentOS 7 Linux I have downloaded the latest Jetty distribution and created the file /etc/systemd/system/jetty.service: [Unit] Description=Jetty After=network-online.target [Service] Type=simple ...
user avatar
4 votes

How can I make Nginx return HTTP 503 when my proxied app server is down?

With just the contents of Martin Fjordvald's answer I was still getting 502, I didn't have a real maintenance.html page, but this seems to work: location / { error_page 502 =503 /...
user avatar
4 votes
Accepted

Redirecting port 8080 to port 80 - how to add in /etc/sysconfig/iptables file?

It would be like this: *nat :PREROUTING ACCEPT [0:0] :INPUT ACCEPT [0:0] :OUTPUT ACCEPT [3:353] :POSTROUTING ACCEPT [3:353] -A PREROUTING -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080 COMMIT # ...
user avatar
3 votes
Accepted

Is this Kerberos/AD setup possible?

Without seeing the packet capture, I'd guess the HTTP/www.website.com SPN needs to be registered to the account running the application. Microsoft's Directory Services team has a great multi-part post ...
user avatar
2 votes

How do we increase the maximum allowed HTTP GET query length in Jetty?

To increase the limit on the request header size at Solr side. if you are running Solr on Jetty, perform the following steps: Open the \server\etc\jetty.xml file. Change to Save the changes....
user avatar
  • 121
2 votes

Why is my Jetty server logging DNS error?

You can disable the logging of these DNS errors by adjusting the logging settings within Jenkins. From the Jenkins web interface go to: Manage Jenkins -> System Log -> Log Levels (on the left) ...
user avatar
  • 121
2 votes
Accepted

Apache not responding to all requests

This is due to nginx not having enough worker connections. You can see it in nginx error log: 2014/05/12 19:45:51 [alert] 9800#0: 768 worker_connections are not enough 2014/05/12 19:45:51 [alert] ...
user avatar
  • 2,043
2 votes
Accepted

https reverse proxy on http jetty

Try adding the following to your HTTP connector in the Jetty application: <Set name="forwarded">true</Set> This will try to read the following headers that are supposed to be sent by the ...
user avatar
2 votes

gracefully stopping Apache Solr from command line

Just to clarify the previous answer, in the command: java -DSTOP.PORT=8001 -DSTOP.KEY=stop_jetty -jar start.jar The -DSTOP.PORT=port should specify an available port (different from the port ...
user avatar
  • 21
2 votes
Accepted

Setting up Jetty SessionHandler

Well, it seems like the classpaths in Jetty9 documentation explaining how to setup persistent sessions is simply incorrect. As soon as I changed paths from org.eclipse.jetty.servlet.* to org.eclipse....
user avatar
  • 505
2 votes
Accepted

Run two web servers at the same port (jetty, grunt)

By definition, only a single process can listen on any given port. That said, you can achieve what you're asking for with a reverse proxy (mod_proxy, HAProxy, nginx, lighttpd). You'd have to change ...
user avatar
  • 8,910
2 votes
Accepted

Session lost in Jetty using Apache as proxy

The following Apache configuration resolves the issue: ServerName domain.com ProxyRequests off ProxyPass /myapp http://localhost:8899/exist/apps/myapp ProxyPassReverse /myapp ...
user avatar
  • 149
2 votes
Accepted

https to http reverse proxy on Jetty 9

It seems to be a fairly simple thing to achieve. One simply needs to uncomment the following part in /etc/jetty.xml: <!-- Uncomment to enable handling of X-Forwarded- style headers <Call name="...
user avatar
  • 505
2 votes
Accepted

How to send a permanent (301) redirect from HTTP to HTTPS in Jetty 9

We were able to get the desired behavior by adding a redirector.xml file next to the war. The contents of that file are below. Note that this will also redirect example.com to www.example.com: <?...
user avatar
  • 31
2 votes

haproxy/jetty - redirect all unknown path_beg

well if you have list of all valid urls as you said create an acl for valid urls like acl valid_path path_beg -i /path1 path_beg -i /path2 path_beg -i /path3 path_beg -i /path4 http-request ...
user avatar
2 votes
Accepted

Configure Jetty to host simple HTML page

Just create a directory called root inside webapps and put there your index.html. Jetty will serve all the static content inside root at context /.
user avatar
2 votes
Accepted

Need to run httpd and jetty on the same centos7 server

Check out mod_proxy. Something like this should work. <VirtualHost *:80> ServerName domainOne.tld #put info to point to your PHP app here </VirtualHost> <VirtualHost *:80> ...
user avatar
  • 351
2 votes

How to redirect HTTP request based on URL parameter?

If the query parameter refers to a container that you can address directly, you can just pass that to proxy_pass directly, e.g.: proxy_pass http://$arg_appType; But that's using untrusted ...
user avatar
2 votes

Apache reverse proxy not working and generates a 404 error

Try removing the port from the ServerName directive. I.e., ServerName idp.spectrum.com.cy Per https://httpd.apache.org/docs/2.4/mod/core.html#servername the port is optional and allowed, but the ...
user avatar
  • 7,534
1 vote

Redirecting nginx to another internal port not working

I think you location is incorrect, use location /api/ { proxy_pass http://127.0.0.1:4567; } Add slash in the end of your location.
user avatar
1 vote
Accepted

same port opened - one on the asterisk (*) address and one on localhost

This is how to reproduce it on osx. No idea why it works (don't tell anybody, I try to pose as a linux guy), on linux it doesn't. See https://stackoverflow.com/questions/14388706/socket-options-so-...
user avatar
  • 641
1 vote

In Jetty 6.1.14, how can you get a basic file/we server running alongside a Java webapp?

That version of Jetty is over 6 years old, and Jetty 6 itself has been EOL for over 4 years. We are releasing milestone versions of Jetty 9.3.x now which contain HTTP/2 support. Referencing the ...
user avatar
1 vote
Accepted

Solr4 installation with Jetty

Changing to bash shell should work for you. It seems that you have messed with installation Let me give you steps to do it which worked for me: I downloaded solr4.10.1 . cd /tmp wget http://apache....
user avatar
  • 655
1 vote
Accepted

Monit cannot connect to Solr/Jetty instance

I believe the problem laid in the fact that the new(er) Solr web-interface uses a ton of Javascript and other redirects, something maybe the basic monit http checker can’t handle. Turns out there is a ...
user avatar
1 vote

ERROR: JETTY_HOME not set

This is a rather frustrating error with little help out there. I thought I'd post my solution here for someone who is looking to solve the same problem. Anyway, the correct solution is to set ...
user avatar
  • 183
1 vote

archiva/jetty with nginx ssl proxy: getting http responses

upstream archiva.example.com { server 127.0.0.1:8084; } # Serve Local Webserver Out of Proxy server { listen 80; server_name archiva.example.com; rewrite ^(.*) ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible