5
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 /...
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
...
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
# ...
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 ...
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:
<?...
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 ...
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>
...
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....
2
votes
Accepted
Apache reverse proxy not working and generates a 404 error
It's supposed to be
ProxyPass /idp/ http://localhost:8080/idp/
Note the trailing slash in the ProxyPass command's first argument. Always align the trailing slashes in both arguments.
My VirtualHost ...
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 ...
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 ...
2
votes
Java crash due to native memory allocation map failure, despite n
After fully analyzing what happened,
The key here is -Xmx and -Xms being set to the same value, meaning the JVM will not allocate more stack. So the failure has to be for allocating something OTHER ...
1
vote
Java crash due to native memory allocation map failure, despite n
mmap failures mean the (Linux) kernel failed to allocate memory. Often in a out of memory condition. It does not mean that a (JVM) process exceeded its memory limits.
things required by the ...
1
vote
Can’t connect securely to this page
You can get a very detailed report on your SSL configuration and issues from the site https://www.ssllabs.com/ssltest/. This may help you discover what the issue is.
1
vote
How to forbit apache httpd from adding headers to responses
There isn't just a "No adding any headers ever!" flag in apache - any module can add headers to a response. Apache's designed as a web server - you should expect that it's going to behave as one, and ...
1
vote
Accepted
nginx doesn't pass outer request to localhost
The regex is not right in your version. However, you don't actually need regex matching in your case, so you can use this version:
location /api {
proxy_pass http://localhost:8080;
...
1
vote
Jetty - Virtualhosting - SSL Certificates
Because I've now spent some time going through Jetty Documentation:
With Java 8 (which can do SNI), you don't need to configure anything in order to serve multiple different HTTPS certificates. They ...
1
vote
Jetty: How to redirect base url?
Jetty has a Rewrite Handler that can be enabled using
$ java -jar start.jar --add-to-start=rewrite`
Following the examples given in the documentation, you can add a rule in the xml file:
<...
1
vote
Apache ProxyPass ignore static files
The way to make it work inside Location blocks is to reverse the order, i.e. have the most specific Location statement last:
DocumentRoot /path/to/foo
ServerName foo.com
ServerAdmin webmaster@foo....
1
vote
How can I enable GZIP compression in Jetty?
In Jetty 8 (?) and later, you will have to use a GzipHandler as GzipFilter seems to be deprecated/missing:
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
<Set name="handler"&...
1
vote
Configuring Jetty as a service - how?
What Alexander Farber suggest is basically correct and usable but I'd like to point to my little project https://github.com/cosenmarco/jetty-systemd-notifier which signals systemd about the life-cycle ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
jetty × 164java × 36
solr × 19
apache-2.2 × 18
nginx × 17
ubuntu × 17
tomcat × 11
linux × 10
ssl × 10
ssl-certificate × 9
web-server × 8
configuration × 7
centos × 6
debian × 6
apache-2.4 × 6
amazon-ec2 × 5
reverse-proxy × 5
virtualhost × 5
httpd × 4
mod-proxy × 4
servlet × 4
windows × 3
amazon-web-services × 3
security × 3
iis × 3