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
2answers
92 views

Let's Encrypt setup for subdomain which is pointed to other host

I'm trying to setup a two server system, where one is doing webhosting and the another is delivering content (CDN) for the webhost server. I currently own two servers and they both have Let's Encrypt ...
1
vote
1answer
61 views

Mod_rewrite is adding /var/www to the resulting url

I have some problems with the Apache mod_rewrite rules. Whenever I try to go to https://example.com// (see double slashes at the end) it redirects to a 301 page but it's adding the location of the ...
0
votes
0answers
87 views

SELinux: How can I use the 8081 port with apache? [duplicate]

I need to use the 8081 port with Apache but Selinux doesn't allow that: semanage port -l | grep http_port_t http_port_t tcp 80, 81, 443, 488, 8008, 8009, 8443, 9000 semanage ...
0
votes
1answer
75 views

Proxy directory to another url with httpd proxy

Currently Im trying to forward a directory in my domain to domain with port. The reason I'm trying to do this is because my server is apache but I need to access just one node file. I'm posting some ...
0
votes
0answers
15 views

Can I limit access to a certain URL virtual host patterns to only local network clients?

My apologies, I am not very deep into Apache configuration.Most of it is automatically maintained. But I need some sort of override. I am running multiple virtual domains on my Apache web server (...
0
votes
0answers
301 views

Reverse proxy for Nextcloud Snap and Collabora

I have succesfully installed the SNAP version of Nextcloud on my Ubuntu Server 18.04. Everything works fine using HTTPS with a let's encrypt certificate. Now I want to install, on the same server ...
0
votes
1answer
66 views

Share Document Root for Apache w/ SSL with two separate subdomains and certs

So, I'm running an Apache server on CentOS 7. I have two domains pointing to the same place: https://www.example.com and https://example.com. In my cfg, I have three VirtualHosts; one for http (for ...
1
vote
2answers
596 views

Denying access to all files except index.php but allow access through “/” in htaccess file

When I try limiting file access to just index.php using something similar to the answer in the link below I am unable to access through the directory index such as "DIRECTORY/" and "DIRECTORY". I ...
0
votes
1answer
399 views

Forward proxy requests through ssl in apache

I have an apache webserver and I want to forward proxy all requests to another domain. so far, I've done that for http requests but it does not work for https. my httpd-ssl.conf file: Listen 443 ...
0
votes
2answers
1k views

Client denied by server configuration on Apache 2.4

We have migrated multiple Drupal 7 / 8 sites to a new stack, where the main changes were replacing Apache 2.2 and FastCGI with Apache 2.4 and PHP-FPM. We have the following error on multiple sites: [...
0
votes
1answer
216 views

I think Varnish is dropping my query string parameters

Our WordPress site has multiple views for every page and post depending on whether or not a specific query string is used. For example, if visited example.com/blog-post-with-chart (a page which ...
0
votes
1answer
56 views

Blocking “pokes” of our system

We get tons of these in our apache error log every day. [Wed Oct 17 03:27:37 2018] [error] [client 103.41.124.159] File does not exist: /var/www/html/phpmyadmin [Wed Oct 17 03:27:37 2018] [error] [...
0
votes
1answer
199 views

ServerAlias not working | Apache 2.2.13

I have this V-Host definition: <VirtualHost *> ServerName www.example.com ServerAlias example.com DocumentRoot /srv/www/default Redirect 301 / http://www.example2.com/ </...
3
votes
1answer
373 views

Block access to all php files in subdirectory

I need to block access to all .php files in a subdirectory of my web root. I know that I could create a .htaccess in this subdirectory and use the following: <FilesMatch "\.(?i:php)$"> <...
1
vote
1answer
65 views

What to update to keep the server secured?

I've been asked to specify which updates are needed to update our server and have it secured - problem is I'm not an expert on this. I know that we've very old software. For my work I need PHP 7.2 ...
3
votes
2answers
73 views

Any security risk in creating root public/private keys and adding public key to Github repo?

I would like to do version control on some important directories on my server such as /etc/apache. All the files and subdirectories in that directory are owned by root:root. Would it be considered a ...
0
votes
1answer
93 views

php apache_note with mpm_event

I'm wanting to switch to mpm_event to be able to serve a higher rate of requests. My initial testing showed that the server can serve a higher rate of requests when using mpm event. The server is ...
0
votes
2answers
56 views

Have to set different file owner to differenct apache vhost?

I have vhost1,vhost2 under Apache. Do I need to set /var/www/vhost1's file owner to vhostuser1,set /var/www/vhost2's file owner to vhostuser2. Somebody said it's the necessary setting for security,...
0
votes
1answer
527 views

Nodejs/Apache config for proxy pass

I want to use Nodejs/Apache proxy pass to serve my APIs, but after add below apache(httpd) config, it seems that config not working. OS: CentOS 6 /etc/httpd/conf/httpd.conf: ... <VirtualHost *:...
0
votes
3answers
38 views

Create Gcloud maintenance to restart instance if stops responding on port 80

we're using Google Cloud Platform, and running an instance Ubuntu which has Apache listening on port 80. Sometimes the instance stops responding, and the server goes down in Cloudflare (but that's ...
0
votes
1answer
50 views

Apache/PHP Undefined function - occurs sometimes - fix by apache restart

I'm facing a really strange problem My website sometimes starting to serve errors like 2018/09/25 09:13:33 [error] [php] Call to undefined function @=Q<C6>+V(). File: /var/www/xxxx/MainModule....
-1
votes
1answer
446 views

Apache server - Unable to locate CSS and JS files

I want that when i hit URL A, it should serve content from URL B but the URL on the address bar should keep pointing to URL A only. URL A: http://apps.company.com/lab URL B: http://svrdev-73:6020 ...
1
vote
2answers
191 views

WordPress admin pages timeout, or take 30s to load on Elastic Beanstalk, PHP 5.6, Apache, RDS, and CloudFlare

I recently migrated a WordPress website I inherited over to AWS from Rackspace and am experiencing large performance decreases. I'm pretty new to the whole DevOps thing so I'm not sure where to start ...
0
votes
1answer
1k views

Apache custom 404 page not loading

I am trying to set up a custom error page for 404 error on my apache server. Here is what I am included in the Virtualhost <VirtualHost *:80> ErrorDocument 404 /var/www/html/mant.html </...
0
votes
1answer
193 views

HTTPS redirect only working for base/root URL

I have the following set up for my virtual host: <VirtualHost *:80> ServerName www.example.com ServerAlias example.com DocumentRoot /var/www/example.com ErrorLog ${...
0
votes
1answer
187 views

Installing Apache2 / PHP on AL2

I've installed Apache2 and PHP as follows: sudo yum install -y httpd.x86_64 sudo amazon-linux-extras install php7.2 I'm not able to find a libphp7.so module to load within Apache2. I loaded the ...
0
votes
1answer
92 views

SSH to different devices behind router using domain names without Nginx/Reverse Proxy? [duplicate]

I'd like to access multiple different devices residing on my home network, from anywhere else in the world, using custom domain names. I'm running a standard (commercial) router provided by my ISP, ...
1
vote
1answer
21 views

Apache: why always showing files from the same virtual host?

I have set up 2 virtual hosts, sharing the same IP address: <VirtualHost *> DocumentRoot "/var/www/vhosts/website1.com/httpdocs" ServerName www.website1.com </VirtualHost> ...
0
votes
0answers
13 views

Remove a portion of the URL with .htaccess [duplicate]

I have an OpenCart site that I have enabled SEO URLs which uses the CMS and .htaccess to manage and have noticed in Webmaster tools that sometimes the crawler picks up a URL with a strange string in ...
1
vote
1answer
119 views

Disable cache for 404 ONLY, in apache 2.2

Is there any method to call RESPONSE_CODE in http.conf file --> check if it is ="404" --> Disable cache for 404 ONLY.. P.S. I am using Apache 2.2. For apache 2.4 I saw some help as below: <...
0
votes
1answer
36 views

Why does my A record point to my apache server

I have two web servers nginx and apache2. I have an A record for mail.aboutryansam.com and a CNAME webmail.aboutryansam.com. I've been trying to setup a postfix and dovecot mail server hosted on mail....
1
vote
2answers
28 views

What format do both nginx and apache follow to send the request to the app?

I was just thinking if an app like rails or laravel can receive the request from different server applications like apache or nginx, there must be some sort or request format the servers follow to ...
0
votes
0answers
371 views

Apache Single Sign On Working on 1 of 2 Portals

I use a helpdesk system in our intranet that I've configured for Single-Sign-On via LDAP/Active Directory. The helpdesk server itself lives on an Ubuntu 16.04 Server box running on Apache, Server ...
0
votes
0answers
5 views

Are apache Worker and Prefork values acceptable for hardware [duplicate]

Below are my numbers for MPM Worker and Prefork. I have been getting an error: mpm_prefork:error] [pid 12526] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process This has lead ...
-2
votes
1answer
45 views

How to connect a MySQL database on a remote machine

My apologize, this question may seem obvious...but I'm not an expert in system administration. I have a Windows server (on my Intranet) running Apache 2.2 and MySQL 5.1. The server has PHPMyAdmin ...
1
vote
1answer
58 views

Apache, mod_ftp does not handle multiple named vhosts

I have a Apache 2.2 web server running multiple HTTP and HTTPS virtual hosts, these work fine. Now I need to add an FTP vhost (there was one before!), and while httpd -S displays all vhosts, only the ...
0
votes
1answer
95 views

htaccess + htpasswd: how to prevent executing php scripts without specifying a password

My site is managed by Apache on Linux. In the base directory, there is the sub folder fill. In this subfolder, there is a php script: do.php Here is my .htaccess: AuthType Basic AuthName 'Welcome ...
0
votes
0answers
9 views

Change referrer information sent to receiving site

I'm looking to customise the referral information sent from my site to anyone that I link to. For example when I go from https://www.example.com/page/1 to https://www.anothersite.com/somepage I want ...
1
vote
1answer
240 views

Do not use .htpasswd when env set to specific value

I have .htpasswd protection on my site that works fine. When I call a script that puts everything into cache via PHP CLI I get a 401 error. The problem here is the .htpasswd protection. In the CLI ...
1
vote
2answers
57 views

iPhone OS 11_3 http connection flood

I have been trying to limit max TCP connections to port 80 of my server coming from the same IP. I have used iptables for this task: -A INPUT -p tcp --dport 80 -m conntrack --ctstate ESTABLISHED -m ...
0
votes
0answers
26 views

Is it possible to exclude a directory with ProxyPassReverse?

I'm looking to exclude a directory from a site is behind a reverse proxy. examples I'm seeing are using ! , but I haven't been able to solve this See examples that I've tried below. Legacy system ...
0
votes
0answers
40 views

Apache download limit

I've a performance issue with Apache 2.2 on Windows 2008R2 and 2016. When I try to download file through Apache which has a proxy to a the httpserver my speed limit is 250 Kb/s. When I try to download ...
1
vote
0answers
48 views

Virtualhost with two dashes

I am facing a problem with defining virtual host, if I define host like this <VirtualHost *:443> ServerName some-site-name.example.com DocumentRoot /data/web </VirtualHost> It ...
0
votes
1answer
885 views

Cannot access website without www

I'm not sure where I'm going wrong, but I cannot seem to access my website without including the www prefix in the URL, otherwise I can access it fine. I have the following DNS records: A: @ - ...
0
votes
1answer
532 views

Apache2 configuration - Virtual Host IP on AWS Linux 2

/etc/httpd/conf.d/vhosts.conf: <VirtualHost *:80> ServerAdmin admin@example.io DocumentRoot "/var/www/html/vhosts/main-repo-dir" ServerName example.io ErrorLog "logs/example.io-...
0
votes
1answer
29 views

Wrong directory on virtualhost [duplicate]

I'm trying to have 3 different domains on my VPS, those are pd.lsgob.us intranet.lsgob.us lsgob.us I have configured them but for some reason I'm getting redirected to the same index.html that the ...
1
vote
1answer
179 views

'max_questions' for user 'root' has exceeded

Accidentally change settings on mysql server (local LAMP), and now i have this: ERROR 1226 (42000): User 'root' has exceeded the 'max_questions' resource (current value: 1) Can't use any query, also ...
1
vote
1answer
777 views

Httpd LimitRequestFieldSize not taken into account

I have a problem configuring httpd to accept large SPNEGO authentication headers. The request work fine with Authorization header line of up to at least 5674 bytes but break with Authorization header ...
0
votes
1answer
42 views

VPS high traffic load

Hello everyone I am really new on this topic so most of my questions will be trivial. I buyed a VPS from godaddy which has 4 CPUs 8GB Ram and 200 GB HDD. I set up a one domain and upload my web site ...
1
vote
1answer
149 views

IIS and Apache rewrites and redirects working together

I'm having some trouble with IIS and apache working on the same server. Specifically, any redirects that apache does don't replace the website domain with the target domain. Here's an example: Trying ...