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
319 views

How to set up Cloudflare, Custom Domain, SSL, and Elastic Beanstalk without a Load Balancer

Background & Research I am currently in the process of polishing off the infrastructure for a project of mine and I have realised that I have a slight issue when it comes to the SSL certificate ...
1
vote
0answers
97 views

How to escape dollar sign in Apache conf file

I am having a problem with Apache 2.2 (httpd) conf files. I have it hosted on RHEL, and we have ldap URL which contains "$Customer" in the memberOf filter. Due to that, normal placement of ldap URL in ...
1
vote
0answers
31 views

How to block bad url path that is not part of my site from showing in google search?

I have got a site that is running on Node.js (Express) , and Apache httpd. Hundreds of requests are coming in from malicious IP's, which I'm proactively blocking. (I have a script that looks at the ...
0
votes
1answer
392 views

Apache 2.4 Rewrite rule based on Header value

trying to do http to https based on header value of the request but failing some how.can some one help me here. request is if a header value is xyz and it is equal to Y then serve http pages,for all ...
0
votes
1answer
33 views

Apache random 403 errors

We are using php 5.4 and a custom php page . When there is concurrent 300 users for some of the requests it throws 403 forbidden. This page does not use db connection . The apache maxclients is set ...
0
votes
1answer
213 views

Reverse proxy does not work on Apache in Cent OS 6.9

I created the sites-available and site-enabled folders, I added the site.domain.com.conf file with a virtualhost in my domain site.domain.com to do reverse proxy in a Nuxt node.js application, which ...
0
votes
1answer
469 views

Unusual hits in Apache log for localhost site

I have an Apache 2.2 webserver running on Windows 7 with six virtual hosts set up. Domain name A points to ?:/.../urls/1/ Domain name B points to ?:/.../urls/2/ Domain name C+D point to ?:/.../urls/3/...
0
votes
1answer
48 views

Apache hangs after every 2-3 weeks, with closed_wait connections increasing until it is restarted

We have a cluster setup of 3 server, on all 3 servers weblogic is running to host website. On the top of weblogic using Apache as load balancer. Last year I had upgraded Apache http server from 2.4.9 ...
1
vote
0answers
93 views

Have apache run a script before handling request

I want to have Apache run a script every time it gets a request. To be clear I want apache to serve the actual file and just have this script called right before Apache handles the request (I have my ...
1
vote
0answers
26 views

How can hide full path of my webpage in Ubuntu at DigitalOcean?

Good day: I have my domain, for example: www.mydomain.cl in Digital Ocean (hosting) with Ubuntu, hosting. In this path I have my wordpress files: /var/www/html/alianzaWordpress/datos1 My 000-default....
0
votes
1answer
1k views

`GLIBCXX_3.4.20' not found Centos7

while starting deepstream output show like this how can i resolve this issue. I installed the latest version which is not available in yum repo by using rpm file and i can't remove this package too.....
-1
votes
1answer
252 views

How to strip port number from http request url?

I am using httpd server for load balancing and as web server. I want to convert my request from : http://hostname:port/service to http://hostname/service How it can be done using RewriteRule or any ...
1
vote
0answers
56 views

APACHE LDAP (authnz_ldap) auth not working, what is the correct syntax in my case?

I'm running a docker container with apache to host a webapp, and I'm trying to integrate LDAP auth. I think my issue is with the syntax, as I never had to do with LDAP, I'm not sure how to fix this. ...
0
votes
0answers
53 views

How to cache static content with a certain condition

I am using Apache httpd to front end a few application servers (eg, WebSphere, JBoss etc). I am also using Apache to cache the static content like gif, jpg, css etc. This works fine for most ...
0
votes
1answer
22 views

Is it possible to allow mysql connection only from specific folder?

Is it possible to allow mysql connection only from specific folder? I want to make sure that connection to database is only from my secure folder. This folder has php script which will make mysql ...
0
votes
1answer
39 views

“Allow from” in a range in Apache 2.2

I'd like to add a range of IPs to Apache httpd 2.2 where the third octet is in a range: X.Y.192-254 I can do this: Allow from X.Y.192 Allow from X.Y.193 . . . Allow from Y.Y.254 But, that's pretty ...
-1
votes
2answers
81 views

Apche http mod_rewrite and HTTPS [closed]

I have two domains old.example and new.example. I want to redirect old.example to new.example sending a 301 response code and forcing to use https. All works fine using HTTP, but it fails with HTTPS....
1
vote
1answer
288 views

Why is 301 Redirect Not Working After Removing .PHP Extension via HTACCESS?

I'm removing the .php extension from files contained within a specific directory on my website (courses) via .htaccess on Apache/2.2.26 (Unix). Additionally, I'd like to 301 redirect the old .php ...
0
votes
0answers
40 views

after installed Lets encrypt SSL site is not opening

I am using apache web server on centos 7. I hosted some files, and i installed. after that site was working fine for http. Then i installed Lets encrypt SSL afte this site is not opening. I opend port ...
1
vote
1answer
61 views

Prevent user running scripts from web folder

I have set up a server (A) with a user that allows ssh access from another somewhat (but not fully) trusted server (B). Server B will be sending over files to Server A into a directory that is ...
0
votes
2answers
93 views

One domain for multiple Linux Servers

I apologize in advance if the question I'll be asking is basic or anything but I am quite a newbie on this topic. I have a main domain example.com which is used for the apache web server. Now I have ...
0
votes
1answer
48 views

How to serve non-static site from per-user website?

A lot of companies and universities allow members to use the $HOME/public_html directory as a root for their personal home pages. However, it seems the directory can only be served as a static site. ...
0
votes
0answers
58 views

Apache multiple virtual hosts same ServerName

I want to use the same exact ServerName, but load the first virtualhost block that works. Here's how it should work: If there is a wordpress folder in /var/www load that. Otherwise, load index.html ...
0
votes
1answer
99 views

Apache2 reverse proxy with response caching

I'm using Apache as a reverse proxy for an application running on a local port. I want to cache responses from this application in memory. So requesting the same URL frequently should give me cached ...
0
votes
1answer
122 views

Apache prefork module. Processes not being forked under heavy load

I have an apache prefork module http server running on linux machine. The machine has 8GB RAM. I have following in my /etc/httpd/conf/httpd.conf: <IfModule prefork.c> StartServers 8 ...
1
vote
1answer
93 views

Multiple Tomcat - URL Mapping

I have installed multiple tomcat instances in Ubuntu. I want to specify different URL to each tomcat instance. But I am not able to achieve desired result in case of multiple tomcat instances. (Below ...
0
votes
1answer
152 views

Using the same access log file for two of many virtualhosts

For some reason, I need to define the same access log file for two of many Apache virtualhosts. Is it technically supported by Apache Web Server? Will there be any conflict for using same log file? &...
0
votes
0answers
39 views

GitLab installation has obscured all the other sites on Apache

I have Apache used also as a reverse proxy for a couple of web applications, both in HTTP and HTTPS, but after installing GitLab, it has obscured them all, and if I go to https://myapp.domain.com I'm ...
2
votes
1answer
44 views

Why can't I redirect index page with apache .htaccess?

I have a site with just a handful of pages, and I am trying to do a 301 redirect of everything. Everything works except the index file. It doesn't matter if I write it out as http://example.com/...
0
votes
0answers
98 views

Passing PHP headers to NGinx Proxy

I have nginx setup as a proxy in front of APACHE, which in turn talks to PHP-FPM. It turns out, nginx is cutting out (or better to say not passing through) headers that are set directly in PHP via ...
1
vote
1answer
826 views

How do allow fontawesome as a style-src in my Content-Security-Policy?

I'm trying to set my Content-Security-Policy header in .htaccess. I've already tried a variation of the answer to this post but it doesnt work. All my fontawesome icons are broken. Header always set ...
0
votes
3answers
450 views

How to configure multiple domain using 000-default.conf file

I'm trying to configuring my Apache to 'answer' to multiple domains. Example: www.site1.com -> /var/www/site1.com/ www.siteX.com -> /var/www/siteX.com/ www.bibibi.com -> /var/www/bibibi.com/ ...
1
vote
1answer
48 views

Apache ssl.conf RewriteRule [duplicate]

The stuff after the #### are just to tell you what I am doing and it's not actually part of my ssl.conf file Trying to modify an ssl.conf configuration to do the following... RewriteCond %{...
0
votes
1answer
18 views

Apache Redirect directive stops working after 400 odd redirects

A business partner asked us to implement a list of 1000+ URL redirects from http://site1.com to https://site2.com. We set up an (old) Apache 2.2 which we cannot upgrade as follows: <VirtualHost *:...
-1
votes
1answer
207 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
2answers
484 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
978 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
324 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-...
-1
votes
1answer
823 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
1answer
80 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
26 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
313 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
34 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
115 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
42 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
67 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
54 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 ...
-3
votes
1answer
57 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
24 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
52 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
3 4
5
6 7
342