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
0
votes
0answers
12 views

Multiple instances mapping hosts by port

I am trying to setup a dev environment where I can enter: project1.com in a browser and goto a specific directory. project2.com would go to another directory. The challenge is, I am using laravel ...
0
votes
0answers
6 views

Apache reply with 408 timeout instead of 403

Reading the access log of apache of one of our server I've found that some ips connecting to it receive a "408 Timeout" response instead of "403 Unauthorized". This is one line of the access log: [...
0
votes
1answer
60 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
0answers
37 views

Is it good practice to keep .php files out of /var/www/html or /public_html [on hold]

I've read that you can put php files outside of the document root of virtual hosts and that it can prevent people from accessing the .php files as well as prevent people from being able to download ...
0
votes
1answer
14 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 ...
-1
votes
0answers
14 views

How to configure Laravel with apache2 with port number on Ubuntu?

I have Laravel API project to run with port 8000. I want to deploy this on dedicated server. After that I want to access with IP and Port number (http://123.12.32.1:8000). This is the current ...
0
votes
0answers
15 views

XAMPP preinstalled Apache certificates

While I was setting up SSL for localhost, I noticed that there are already some certificates in xampp/apache/conf: The folders ssl.crt, ssl.csr and ssl.key contain server.crt, server.csr and server....
0
votes
1answer
23 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
75 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
26 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 ...
0
votes
0answers
18 views

What certificate encoding supported by Apache?

According to the documentation, Apache supports only PEM-encoded certificates: https://httpd.apache.org/docs/2.4/mod/mod_ssl.html What strange, we were able to configure Apache with DER encoded ...
0
votes
0answers
37 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
22 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
0answers
35 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
35 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
29 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
44 views

Allow php to run shell script with sudo permission

command php -v is working when I execute simple shell_exec('./script.sh'); but when I use sudo it doesn't work without sudo service stop command is not working. var_dump(shell_exec('sudo bash ./...
0
votes
0answers
19 views

Apache2 server not portforwarding outside network, but added domain works. What's happening?

I'm running an Apache2 server on a linux machine, and it works fine. Files are hosted, DNS works inside the internet (willwam.com), but not outside. Why is this so? Godaddy, as the DNS manager of my ...
0
votes
0answers
34 views

How to send all the requests to proxy server written in python 3, using apache server

I have written a proxy server in python 3 which listens on the port 4444. I have the Damn Vulnerable Web Application(DVWA) running in my virtual machine. I started the apache2 server in virtual ...
0
votes
0answers
36 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
21 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
30 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
63 views

Apche http mod_rewrite and HTTPS

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
60 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
30 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
53 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
54 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
0answers
57 views

Anything beyond '/' path is not found

I've just installed a fresh lamp stack on Ubuntu 18.04 and it finally worked on localhost in browser. index.php is recognized and renders expected output. Though any link that goes beyond "localhost/" ...
0
votes
1answer
46 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
29 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
22 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
38 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 ...
0
votes
0answers
18 views

Apache Proxypass suddenly stop working

I have 2 servers one I use it as proxy (apache) and the other have docker and multiple containers with different websites My actual proxypass configuration is this in ServerA ServerAdmin ...
1
vote
1answer
69 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
0answers
13 views

php and tpl files in Nginx showing 404

We are moving our php website from Apache to Nginx. One problem that we have not been able to fix is with passing functions in url via php or tpl files. For eg. if a url is something like this www....
0
votes
1answer
32 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
14 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 ...
0
votes
0answers
30 views

Iptables allow HTTP/S connection only from spesific IP, but found this access & error log comming from another IP

I have found weird one line of httpd error log and access log on my server. Error log: [Fri May xx xx:xx:xx 2019] [error] [client xxx:yyy:zzz::aaa] Directory index forbidden by Options directive: /...
2
votes
1answer
21 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
21 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
32 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
50 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
28 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
13 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
53 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
14 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
2answers
50 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
48 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
42 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
42 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> ...