Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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)

-1
votes
1answer
20 views

Can't install phpMyAdmin due to package dependency issue

When I run the command sudo yum --enablerepo=epel install phpmyadmin it returns the following package dependency error: Error: Package: php-mcrypt-5.3.3-5.el6.x86_64 (epel) Requires: ...
0
votes
0answers
13 views

Why is the website having 2 instances while deploying on apache2 and tomcat7?

I'm deploying my Java Web Application on VPS which has apache2. The application is being deployed in tomcat7. I've added entries to forward the request from apache to tomcat in httpd.conf. The war ...
0
votes
0answers
14 views

Create mirror website - load balancing? AWS

my SAAS application is going to be white-labelled so I'm considering the best method for this. For now, I would like to keep the database and codebase central so that I can maintain things easier. ...
0
votes
2answers
25 views

Apache2 on Debian: Getting forbidden when accessing local website

So I want to configure the folder /home/web as my webserver because I have folders there representing all the sites I'm developing. I recently switched from Centos to Debian so I'm reinstalling ...
0
votes
1answer
27 views

How to redirect multiple domain to same ip but different port for different services [duplicate]

In my VM, i'm running both apache2 and nginx, but apache2 is pointed to Port 8080 and nginx is Port 80. Already i pointed my domain to ip in nginx and its running properly. The same thing i need to do ...
0
votes
1answer
24 views

Former Proxy Config for Apache 2.2 Webserver not working for Apache 2.4

On my previous server I had a perfectly functioning Apache 2.2 Configuration. On one hand this said perfectly functioning Apache 2.2 config has the purpose of acting as a Load-Balancer for a Web-...
0
votes
0answers
9 views

Site won't display untill loaded completely after migration [closed]

I have an application and this is what it does: I have 10 URLs of an e-commerce site in my database. Whenever I open this application, it reads and displays the title and price of this URL to my ...
-1
votes
1answer
32 views

Apache reverse proxy gets redirection

I'm trying to set up Apache as a reverse proxy. Here is the essential part of its configuration: NameVirtualHost 10.16.10.245:9443 Listen 10.16.10.245:9443 <VirtualHost 10.16.10.245:9443> ...
1
vote
0answers
13 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 ...
-2
votes
0answers
25 views

WordPress admin panel is running extremely slow [closed]

1-2 Weeks ago i asked my server provider to trasfer my server to different location as this one was responsing slow and was taking time to load pages from far location so i manged to get it transfered ...
1
vote
0answers
14 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
19 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
68 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 ...
-1
votes
0answers
21 views

Apache randomly freezes for 5-10 minutes, then fixes itself

I'm running a map tile server with Apache 2.4.18 (Ubuntu). The server gets about 10 requests per second. The server works fine most of the day, however I would get these random server "freezes" (...
0
votes
1answer
21 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
32 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
33 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
13 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
39 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
20 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
19 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, ...
-1
votes
0answers
130 views

ERR_SPDY_PROTOCOL_ERROR for Rails app: occurs on Chrome and Safari browsers, never locally

~20% of the time pages like this https://myhotpot.io/design/chrome_screenshot?id=14 fail to load with this error: Failed to load resource: net::ERR_SPDY_PROTOCOL_ERROR This problem happens on Chrome ...
0
votes
3answers
123 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
27 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
35 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
12 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
17 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
53 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
11 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
42 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
91 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
49 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
42 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
23 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
21 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
29 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
13 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
31 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
16 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
31 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
13 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
48 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
99 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
23 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
83 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
48 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&...