Questions tagged [apache-2.2]

Version 2.2 of the Apache HTTP Server. When asking questions about virtualhosts, please include the output of the following command: "apache2ctl -S" (or "httpd -S" depending on your OS)

Filter by
Sorted by
Tagged with
2
votes
1answer
2k views

Apache Alow From specific IPs behind load balancer

We have an endpoint that we've locked down to be only accessible from specific IPs. We have a conf section kinda like this: <Location /Foo> Order allow,deny Allow from 111.111.111.111 ...
1
vote
2answers
3k views

How does Apache process a path with a percent-encoded URL in it?

I ran into an unexpected case of Apache giving me a 404 error instead of letting mod_rewrite handle the path, when one of the percent-encoded path parts was itself a HTTP URL. e.g. "GET /myfolder/...
7
votes
4answers
12k views

Authenticate in Apache via System Account

I currently have my apache server to authenticate via a password file created from htpasswd. Configured as such: AuthType Basic AuthName "Secured Site" AuthUserFile "/etc/apache2/users.passwd" How ...
1
vote
1answer
3k views

mod_security2.so: undefined symbol: ap_unixd_set_gl

service httpd restart Stopping httpd: [ OK ] Starting httpd: httpd: Syntax error on line 205 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/...
0
votes
1answer
2k views

Transparent redirect or proxy in Apache, preserving incoming request

When a user first hits our server, we want to capture some information about the incoming request: GET parameters, Referer header, &c. The general idea is that when we get an incoming request that ...
8
votes
3answers
15k views

500 Internal Server Error - Invalid command 'Header' in .htaccess

I'm getting in my server error log. [Mon Jan 27 08:04:06 2014] [alert] [client x.x.x.x] /home/.../public_html/.htaccess: Invalid command 'Header', perhaps misspelled or defined by a module not ...
0
votes
0answers
13 views

Is it possible disable redirect(301) for preflight request to 200?

I have some api http://myapi.com. I added tls 1.3, moved to https://myapi.com And now my angular client cannot send requests to api http://myapi.com. Errors appears: Response to preflight request ...
0
votes
1answer
1k views

How can i open correct ports on windows firewall for apache instead of using all?

I installed an Apache2 (8085 and 8086 ports) in a fresh windows 2008 R2 installation. But i found a problem opening ports. I opened the firewall for the program httpd.exe (full and correct path) for ...
0
votes
0answers
77 views
+50

Move nextcloud to sub url but put a public folder at root (with nextcloud + nginx + nginx-docker-gen all in docker)

I have nextcloud running on https://cloud.museumsstrasse.at but since we will use nextcloud primarily for opening data to the public I would like that this nextcloud root url leads to a public ...
0
votes
1answer
4k views

Use of ProxyPassReverse to change Location response header

I am implementing a reverse http proxy: proxy.example.com This will forward requests to servers based on URI: proxy.example.com/server1 -> server1.example.com When a user requests proxy.example....
2
votes
1answer
5k views

mod_rewrite Proxy - maintain host headers

I am using mod_rewrite to proxy a sub-directory like this: RewriteRule ^somedir/(.*)$ http://proxy.example/somedir/$1 [P,L] That means that requests to http://local.example/somedir are proxied to ...
1
vote
1answer
2k views

URL Rewrite and mod_jk

I want to redefine the base URL of a Tomcat webservice, mounted with JkMount. I tried the following: JkMount /myapp/* ajp13_worker RewriteRule ^/service/v1/(.*)$ /myapp/$1 [PT,QSA] The original URLs ...
1
vote
1answer
64 views

How to password protect Apache's auto-generated directory index/listings?

I like the built in indexing that apache can do, I use it a lot to navigate certain files of mine. The problem I run into is that I normally leave a directory with no index.html so that I can view the ...
0
votes
1answer
68 views

Why returns apache a http 500 but does not log any errors?

On a 12 year old (web) server is still 1 old (custom) PHP application hosted. We want to shutdown this server and remove it from the rack. Unfortunately we still need the application, is not actively ...
0
votes
0answers
19 views

Summarize first column same field

I have some datas with URL's and used network data. I made a custom file with these data's and i stuck last one step. What i have now: sevroland.api.url.com 488 www.logstach.url.com 42725 ...
1
vote
1answer
2k views

Enabling mod_wsgi in Apache for a Django app on Gentoo

I installed Apache, Django, and mod_wsgi on Gentoo using emerge (on Amazon EC2). I know that the mod_wsgi is configured in /etc/apache2/modules.d/70_mod_wsgi.conf: <IfDefine WSGI> LoadModule ...
0
votes
1answer
507 views

htaccess: redirect to url without variable

I would like to redirect users to a URL without a specific variable. For example example.com/?hop=hahaha I would like to remove the hop variable and redirect to example.com/ This for subdirectories ...
5
votes
1answer
1k views

ModSecurity on Apache (Debian Wheezy), Authentication logging

I am new to ModSecurity, it works great on the server, but I would like to control the way it logs things. For example as I am troubleshooting my website in order to whitelist or correct php coding ...
0
votes
0answers
17 views

Bots causing server to crash - getting error “server seems busy” in apache logs - need to update prefork settings?

So after my website ( running on a Rackspace 2GB ram centos 7 instance) went down twice this week I went through the logs and seems the culprit are bots ( search engine and others.. ) The bots seem ...
0
votes
2answers
3k views

Apache to listen to multiple ports

I have achieved setting up multiple virtual NIC in 1 VM, and bind websites to different IP on 1 server, e.g., access 2 websites by: http://10.188.2.150 http://10.188.2.152 <--both IPs belong to ...
1
vote
2answers
238 views

Can you see something wrong in my .htaccess?

I've managed to create an .htaccess file that does what I wanted (see explanations and questions after the code block): <IfModule mod_rewrite.c> RewriteEngine On #1 If the requested file is ...
2
votes
1answer
8k views

2-way SSL with apache forward proxy

I'm working to set up Apache as a forward proxy with a client that uses 2-way SSL. The basic flow is myApplication --via http--> Apache proxy --via 2 way SSL--> client. After setting everything up, ...
0
votes
1answer
2k views

finding out list of web urls being served by apache or weblogic

Was never into web applications / middleware / but happen to took over a couple of webservers running apache and weblogic. q1) How do i find out what are the individual web instances/services (or ...
1
vote
1answer
1k views

RewriteRules in .htaccess in subdirectory disabling/breaking RewriteRules in .htaccess in parent directory

This is a shared hosting account with HostGator. I've two .htaccess files. One is in the document root: ~/public_html/.htaccess # this is ~/public_html/.htaccess ## Redirect to https:// ## ...
1
vote
1answer
172 views

Edit htaccess file in apache

I would like to deny all IP addresses but allow one specific IP address in .htaccess. How I should configure my .htaccess or is it a different file? I have CentOS 5 and Apache.
2
votes
1answer
1k views

DoS - Apache threads hanging when not receiving TCP ACKs after sending HTTP response

In summary, I had a case where all Apache threads were hung because all of them were waiting for a TCP ACK from clients after having sent the HTTP page, and because of that, the Apache threads were ...
0
votes
1answer
1k views

Force restart Apache in CentOS 7 after clearing logs

I have the following directory which stores domain logs filled with 17GB of errors: /usr/local/apache/logs Every 2 months I have to delete the logs as they get grow big like this. After clearing ...
1
vote
1answer
3k views

gzip compression using mod_deflate apache with tomcat

I'm trying to enable gzip compression in my Apache server which is fronting a Tomcat instance using a connector. I tried several variants of the module configuration settings in my httpd.conf. Here is ...
105
votes
5answers
183k views

How to list Apache enabled modules?

Is there a command that list all enabled Apache modules?
4
votes
1answer
4k views

Apache mod_deflate not compressing javascript and css files?

"GET /Symfony/web/app.php/app/dashboard HTTP/1.1" 4513/37979 (11%) "GET /Symfony/web/css/application.css HTTP/1.1" -/- (-%) "GET /Symfony/web/js/application.js HTTP/1.1" -/- (-%) "GET /Symfony/web/js/...
0
votes
0answers
17 views

How to correctly tune Apache and mod_wsgi

I'm using Django with mod_wsgi and need to tune the httpd.conf to handle 500 requests per second at peak. Right now I have the following configuration: StartServers 3 ServerLimit 15 MinSpareThreads ...
1
vote
1answer
1k views

How can I set an environment variable based on pre-rewritten URI or post-rewritten query parameter?

So there's a file in WordPress, wp-content/blogs.php, that serves files uploaded through WordPress. There's a RewriteRule in the WP .htaccess that rewrites URLs of the format www.example.com/files/11/...
2
votes
3answers
3k views

How to configure apache as a reverse proxy with the remote server specified in a query string parameter

Problem: I'm trying to configure apache as a reverse proxy where the remove server is specified in a query string parameter. Let's say I'm serving a site at mywebapp.com. If you navigated to http:/...
1
vote
1answer
13 views

php geoip not working on ubuntu 18.04

I can't get the GeoIP PHP extension working on Ubuntu 18.04 with PHP 7.2 i have intalled it by the cli: sudo apt-get install -y php7.2-geoip Its enabled in system but not working: php7.2 -i | grep ...
0
votes
1answer
1k views

How to install a default ssl cert for apache on debian

Learning linux skills...please be patient! I have found lots of tutorials on installing a cert for a single site but not a default. I have a wildcard cert for my domain. I had support install this ...
1
vote
3answers
1k views

Apache Rewrite rules for SSL in sub domain

I have a web site deployed that uses kohana and URL rewriting to make the URLs more restful. This works fine. I also have Moodle installed in a sub directory on the same server and a subdomain ...
1
vote
2answers
38 views

For SPA, rewrite requests to root index.html only after checking for index.html in sub directory

I have an Apache site with a mix of ReactJS SPA (dynamic) routing and static HTML files. It's common to see rewrite strategies that direct all requests on non-existing files to /index.html at the root ...
3
votes
4answers
6k views

Can ping between Host and Guest, but can't acces webserver with Virtualbox

How come I can ping back and forth between host and guest using VirtualBox, but I can't access from the host the web server installed in the guest. I'm using a host-only network. Host Ubuntu 10.10 ...
2
votes
2answers
1k views

RewriteRule not working for apache https request

We have requirement to convert all http requests to https requests and append .xyz.com to the server name. For that i have written the following rule which is working for http requests but does not ...
0
votes
0answers
36 views

.htaccess remove string at the end of url

Suppose I have urls like these: /toys/id-2005200520056-what-ever-toy-name I would like to only keep the id part: /toys/id-2005200520056 The id always has 13 digits. This is what I tried but it's not ...
1
vote
1answer
1k views

Diagnosing a 2-minute delay in HTTP GET request

Under narrow circumstances, I get a 100% reproducible delay of approximately 2 minutes when I request a public web page. The page in question: https://id.openjdk.java.net/console/login Splicing ...
0
votes
1answer
1k views

apache http 2.2.29: Segmentation fault

We are using apache http server 2.2.29 on Linux. Below is the information related to Linux version (as found in /proc/version file) Linux version 2.6.32-573.el6.x86_64 (mockbuild@x86-027.build.eng.bos....
9
votes
1answer
2k views

1GB VPS - Apache Worker MPM - FCGID - Max concurrent connections - RAM CAP

I have spent a week or two researching and setting up my server to run Apache with the Worker MPM and FCID. I am trying to optimize it to allow for the most concurrent connections possible. It has ...
0
votes
1answer
1k views

apache mod_headers custom header

Folks, Trying to add a custom header with mod_headers. Need to set the 'Date' Header for AWS S3 via mod_headers. I am trying to do the following in the apache config: RequestHeader add ...
0
votes
1answer
39 views

is ProxyPass good practice

I wonder if mod_proxy is a good practice because i have an apache http server which delvier my application ressources html/css/jss and for specific url I use ProxyPass to external IP. By example url ...
0
votes
2answers
1k views

Apache2 PHP Notice errors logged

My /var/log/apache2/error.log is filling up about 1GB per hour with PHP Notice errors. I've tried adding this: /apache2.conf php_value error_log none And in my /cgi/php.ini: error_reporting = ...
0
votes
1answer
1k views

How to redirect sitemap.xml used depending on the domain?Undo edits

How I can redirect sitemap.xml file access to different subfolders, if it can be reached from three different domains? domain1/sitemap.xml -> domain1/es/sitemap.xml domain2/sitemap.xml -> domain1/de/...
0
votes
2answers
6k views

net err connection timed out

I have Apache/2.2.22 on Ubuntu 12.04. Apache is set as reverse proxy server. So when accessed from a remote system, the page and contents are displayed. But after some time the server seems to ...
1
vote
1answer
1k views

Tomcat NullPointerException when client doesn't complete SSL handshake

I've got Tomcat 7.0.12 using APR and OpenSSL. Everything appears to be working just fine, but I'm seeing some NullPointerException stack traces showing up in the logs. As far as I can tell, it appears ...
0
votes
1answer
1k views

Nginx and Apache, how to configure proxy_cache?

I have Nginx installed as a front end proxy for Apache, where Apache is servicing PHP and Nginx is servicing static files. I'm having a problem configuring Nginx to cache the output from PHP into a ...

1
2 3 4 5
342