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
1
vote
0answers
22 views

Apache mod_expires not setting correct expires datetime

I'm having a problem with mod_expires. I simply set have a default expires of 1 days and then I set the expires by type (for images and audio). So for example i set ExpiresByType image/jpeg "access ...
1
vote
0answers
19 views

Very long TTFB and high CPU on VPS after Hypervisor Migration

I manage a VPS for my company with a small e-commerce website and a few low-usage Wordpress blogs and the like. My Service Provider migrated me to a different Hypervisor last Thursday, and since then ...
2
votes
1answer
24 views

Apache how make “localhost/<directory>” map to “ C:/Apache/htdocs/<directory>” multiple document root?

How can i make a directory inside htdocs act as the root directory? Example: Going to "localhost/<directory>" Serves "C:/Apache/htdocs/<directory>" as the "$_SERVER['DOCUMENT_ROOT']" I ...
0
votes
1answer
25 views

Can I modify HTTP request line (server-side) prior to processing by Apache?

On Centos (version 6) using Apache 2.2.15, is there a way of modifying the initial request line server-side prior to Apache processing it? I would like to be able to take a request: POST /...
-1
votes
1answer
75 views

How to force/redirect http to https? [duplicate]

I've following VirtualHost configured: <VirtualHost *:80> ServerAdmin mymail@mymail.com DocumentRoot /var/www/mysite.com/public_html/ ServerName www.mysite.com ...
0
votes
1answer
26 views

Can't set up domain and subdomain locally using SSL

I have the following configuration for my local Apache server: <VirtualHost mysite.local:443> ServerName mysite.local SSLEngine on SSLCertificateFile "/Users/graziano/Projects/...
2
votes
1answer
40 views

htaccess redirect / (root) only and mask URL

I have a web server as a part of a company network (Apache). Our main page is only a landing page and I have an employee hub as a subfolder example.com/hub. I would like to keep /hub website on the ...
1
vote
1answer
34 views

Naming internal web server

I’ve got server running Apache to serve http files to some Macs for package updates. Is there any reason not to make the computer name the same as the host name I want to use? I’m guessing as it’s ...
0
votes
0answers
22 views

Apache2 ldap cache does not expire

I'm using mod_ldap and mod_authnz_ldap to authenticate users on my web server. My web server is Apache/2.2.16 on Debian 6. This is part of my site config: LDAPCacheTTL 60 LDAPTrustedMode SSL ...
-3
votes
1answer
50 views

How to add multple domains to new VPS server? [closed]

I am trying to find a way to add 2 domains to the VPS server I bought. Server config: OS Ubuntu with Apache, Mysql, PHP installed. I have 2 domains purchased from godaddy. domain-one.com and domain-...
0
votes
0answers
22 views

Forward/proxy POST request but always serve static file

What I would like to do is forward/proxy/fcgi a request (POST) to an external process/server but have the response come directly from Apache serving a static file. The response of the external process ...
0
votes
0answers
22 views

nginx entire site case insensitive without redirect

I have several WordPress sites that I've inherited managing. On this one particular site, running nginx, (and CloudFlare if that matters) you can use any case on pages after the URL. For example, ...
0
votes
3answers
128 views

Name based virtual hosting on non-routable IPs

Vague title I know but I wasn't sure how to summarise what I am trying to achieve. Basically, I have an internet router port forwarding port ext port TCP 443 to the same port on an internal IP ...
0
votes
0answers
29 views

How to display parent folder if sub-folder doesn't exist?

I am working on an Ubuntu server running Apache and I have having a problem display the webpage I want to. For example, I want to have www.example.com/user/me really display www.example.com/user ...
0
votes
1answer
37 views

Hg ssh redirect

We would like to transfer HG traffic from one server to another. Because we are using DNS alias which we need to keep for another purposes. We need to redirect requests for cloning/checkouting etc. ...
1
vote
0answers
15 views

I cannot get other Mod_Security rules triggered

With Mod_Security on, only following rule is triggered. --93f11d77-H-- Message: Warning. Match of "rx ^%{tx.allowed_request_content_type}$" against "TX:0" required. [file "/etc/httpd/modsecurity.d/...
0
votes
0answers
19 views

Virtual Host points to wrong directory after changing it on Ubuntu with Apache

I created a virtual host for a domain abc.com to point to the directory /var/www/abc. So in my sites-enabled I had this: <VirtualHost *:80> ServerAdmin admin@example.com ServerName abc....
0
votes
1answer
62 views

strange access.log related to acpache proxy

It might be simple but i can't understand the meaning of this line 171.13.14.46 - - [06/Apr/2019:12:24:44 +0000] "CONNECT 133.130.126.119:43 HTTP/1.1" 302 406 "-" "RPS/HTTP PROXY" is it something ...
-1
votes
1answer
34 views

VirtualHost not Resolved

I have two identical VH in httpd/conf.d/. //test.conf <VirtualHost *:80> ServerName testadmin.mysite.it DocumentRoot /var/www/html/testadmin </VirtualHost> //release.conf <...
0
votes
0answers
13 views

Why is this Apache 2.2 SetEnvIf directive failing?

I'm trying to solve a very annoying problem that requires me to set a header from my .htaccess file, but only for a specific URL. As a test of the concept, I have the following rules in my .htaccess ...
0
votes
1answer
74 views

Fail2Ban Not starting when using sudo systemctl status fail2ban.service

When i try and restart fail2ban using sudo service fail2ban restart it displays the following error from systemctl status fail2ban.service Apr 02 20:12:30 centos systemd[1]: fail2ban.service: control ...
-1
votes
3answers
93 views

Server Permissions allowed hacker to execute scripts [closed]

I got hacked yesterday, and for some reason i think this thing I've been doing on my servers over and over might have some disadvantages, Might this question be deprecated but i need simple answer as ...
0
votes
2answers
66 views

Apache HTTPS / non-WWW redirect

I'm wanting to re-direct all my web traffic to https://example.com So-far I've got everything except https:www.example.com re-directing fine This is what my Virtual Host Config file looks like <...
0
votes
0answers
15 views

How to show Wordpress when unauthenticated and the app when authenticated?

So I'm trying to set up a website where the front-end (marketing) page is a wordpress site. Then when the user logs in, it redirects to my dotnet core web application. An example of a site that does ...
0
votes
0answers
50 views

Running Multiple Applications on the Same Domain with Different Ports

I currently have one application running on my server using ProxyPass but I would like to add another that runs on a different port. My current setup with one application is this. <VirtualHost *:...
0
votes
1answer
25 views

mod_proxy apache httpd 2.2.* . (rhel6) reverse_proxy

I'm trying to migrate a website from on premise to AWS cloud. I want to keep the current site live and test the AWS hosted version as well. The apps pseudo hostname is www.hostname.com to have a ...
0
votes
0answers
29 views

Proxy might be redirecting requests

I do need your help. If I throw this nmap command nmap -sS -sV -p 8080 --script http-open-proxy.nse <target IP> I get the following output: Host is up (0.049s latency). PORT STATE ...
0
votes
2answers
31 views

CSR for Ngnix + Apache Server both naked and www domain

I am trying to secure both naked and www domain ( https://example.com and https://www.example.com ) with positivessl For this Server cmd would be openssl req -new -newkey rsa:2048 -nodes -keyout ...
0
votes
0answers
14 views

How to add hosts to a running Tomcat container?

I have Tomcat Application server running behind Apache Web server. Apache has multiple VirtualHosts, included from a directory. When I add a Virtual Host, I just add a conf file pointing to the web ...
0
votes
1answer
32 views

My PHP Site code structure is visible to my clients when they request a directory

A folder in My Site I use apache web server PHP on the back end apache is running under the user www-data Permission for my folders are 755 When users request a php page all is well, but when they ...
0
votes
0answers
17 views

Can not determine between domains after proxy forwarding to nginx

I have nginx configured as a proxy, while apache is listening to port 80. Somehow it seems not to be possible to distinguish between domain names in nginx. apache conf: <VirtualHost xx.xx.xx.xx:...
0
votes
0answers
69 views

Apache not passing through 404 error from Reverse Proxy API

When I make a call using Postman to my API - which is behind a reverse proxy using Apache 2.2 - that returns a 404, I get the standard 404 Not Found html returned instead of the error from the API. ...
0
votes
0answers
13 views

Disable directory listing -Indexes only works when no index.php is present

I was hoping someone could help me out with this little problem i have. I disabled directory listing for my apache setup by removing the Indexes from my /var/www/html directory, and that works.. as ...
0
votes
0answers
20 views

Apache 2.15, mod_rewrite and rewrite map - dealing with query strings and escaped characters

I've been given a series of URLs that require 301 redirects for SEO purposes, and I'm trying to figure out how to make use of Apache's rewrite function in order to deal with source URLs with query ...
2
votes
2answers
49 views

Amend apache's 'index of /' default page

I'd like to add (automatically) some PHP code to the default Apache's page, which lists directory index. I think .htaccess should allow to do this. However, php_value auto_prepend_file "...
0
votes
0answers
114 views

Apache allow HTTPS with Virtual Hosts

I am setting up an UBUNTU 18.04 environment with Apache, MySQL, PHPMyAdmin etc. I need to allow HTTPS connection for URL rewrites, currently HTTPS crash when I enter a 'pretty' URL HTTPS: If I ...
0
votes
1answer
25 views

Can't change user to mpm-itk user

I tried to use mpm-itk to isolate my apache virtual host using this tutorial. I created user bean and group bean, I created a password for this user using passwd bean. When I try to swith to this ...
0
votes
1answer
157 views

SSLLabs: Strict Transport Security (HSTS): Server provided more than one HSTS header

CentOS 6.8 Apache 2.2 I have two websites running off this server (moodle and mahara). For some reason, the ssllabs tests come back fine for one of them (moodle) but for the mahara website, I get ...
0
votes
0answers
66 views

Apache HTTP to HTTPS redirection doesn't work in incognito mode (Firefox & Chrome) or Internet Explorer

I'm currently trying to force http://sub.domain.com redirection to https://sub.domain.com. I tried to use <VirtualHost *:80> Redirect permanent / https://sub.domain.com/ </VirtualHost&...
1
vote
0answers
41 views

Why does Apache need such a long time for initial connection?

I am running apache 2.4.18 on ubuntu. Serving about 500.000 PI per month. No big deal without peaks. Somehow it started now to take a long time for the initial connection, after restarting apache it ...
0
votes
0answers
180 views

Mixed content error while using apache proxy in Ubuntu to serve application on different host for HTTP connection

Hi, guys, I am in deep trouble. Below is a detailed problem that I am facing. I have: 1 Web Server-APACHE ( HTTPS configured and mapped to Godaddy with SSL certificate) 3 App Server ( Works ...
0
votes
0answers
39 views

Apache 2.4 / Windows / Multi-IP based VHosts for SSL/Non-SSL

I'm setting up my Apache server so that it has 2 internal IP addresses for the NIC. One will be bound to all port 80 traffic, and the other to port 443 traffic. The reason I'm doing this is that ...
-2
votes
1answer
92 views

How to use Letsencrypt to domain that has no root folder with Cloudflare?

I am trying to use Letsencrypt (HTTPS) on my website with Cloudflare (HTTP) but I confuse with this. the domain doesn't have a root folder accessing domain will be redirected to one of subdomains ...
2
votes
1answer
65 views

NGINX Not Serving “Fast” Stale Content with proxy_cache_background_update

We are running NGINX in front of our backend server. We are attempting to enable the proxy_cache_background_update feature to allow NGINX to async updates to the cache and serve STALE content while ...
9
votes
2answers
325 views

Can't figure out a htaccess rule

I have this in my htaccess but can't figure out what its for. Because of the nature of rule, searching doesn't help either. RewriteCond %{REQUEST_URI} !(/$|\.) RewriteRule (.*) %{REQUEST_URI}/ [R=301]...
0
votes
0answers
20 views

Assigning Domain URL to my Virtual Host

I setup my own static website using CentOS 7 on a virtual machine with a bridged network. The static site has a self-signed certificate and can be already accessed on the same network. How do I assign ...
0
votes
0answers
20 views

Apache as Forward Proxy with certificate pass-trough

apache ssl I have a certificate on a token that I need to use to connect via an apache forward proxy to a website. Currently the connection is getting closed somewhere, I believe due to the fact that ...
0
votes
0answers
20 views

Multiple Virutal Host with routes centos7

I have multiple apps to run with different routes, this one (Vue js) to localhost/ <VirtualHost *:80/> ServerAdmin webmaster@localhost ServerName 157.230.252.88 DocumentRoot /var/www/...
2
votes
2answers
64 views

Apache HTTP 2.2: Setting cache header when query string version exists

I've found example of how to do this all over the web, but I haven't been able to get this to work. Want to set a long future cache time on requests that have a query string of something like ?v=123. ...
0
votes
0answers
40 views

Proxy Static Django Production with Apache

DEBUG = False <<--- Django (Production mode) I have an external django server that I need to access using the apache proxy. The system works fine, but static files are not loaded. Where I ...