Stack Exchange Network

Stack Exchange network consists of 174 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)

0
votes
0answers
2 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
0answers
14 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
27 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
11 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/ </...
0
votes
0answers
30 views

Apache unable to create worker thread

I have Apache running on a Synology DiskStation NAS. Since the DSM update to version 6.2.1-23824, Apache won't start anymore, giving the following error: [Mon Oct 15 10:29:22 2018] [info] mod_ssl/2.2....
-1
votes
0answers
18 views

Non www and http://www to https://www [duplicate]

I'm trying to make all requests to be redirected to https://www.example.com server is ubuntu 16.04 i'm using apache and the current configuration is like this. <VirtualHost *:80> ServerAdmin ...
3
votes
1answer
31 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
50 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
0answers
16 views

remove server name from response header [closed]

in our site, we have Server:Apache vFabric in response header. we need to remove the server name. we already tried "ServerTokens Prod ServerSignature Off" and header unset server. but it dosnot work. ...
-2
votes
0answers
9 views

Laravel shows 500 error in browser

php artisan serve running successfully, but browser shows 500 error. For some other task I have opened port 6001. Laravel was loaded in 8000 port Please help me
0
votes
0answers
20 views

Install Apache with ftp access

I have ftp access to a server running windows. Is there a way I can install Apache server and PHP in it through command line ? How I connect to the server is through ftp using my macbook.
2
votes
2answers
71 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
0answers
10 views

How I can add Rewrite rule in htaccess only for home page?

I have a problem with apache. My site has these rules now: RewriteCond %{HTTP_ACCEPT} text/html [NC] RewriteCond %{HTTP_HOST} ^mysqite\.com [NC] RewriteRule .* path/to/html/my.html [L] I need ...
0
votes
1answer
57 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
0answers
19 views

how does TLS encryption work on traffic flows which are routed via a (reverse) proxy

I do not understand how encryption works in this particular case. The scenario is the following: Server A (Interface partner) --> Server B (Apache reverse proxy) --> Server C (weblogic application ...
1
vote
2answers
46 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
13 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
0answers
29 views

Synology and php.ini / fileinfo

When i run phpinfo() it states fileinfo IS enabled when i search the server with shh i cannot find fileinfo.so anywhere i even made an if statement to only fire if fileinfo extension is enabled... it ...
0
votes
3answers
29 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
26 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
45 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
76 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
0answers
28 views

How to use Apache forward proxy server to rewrite URLs?

So I have successfully set up an apache HTTP server as a forward proxy. Next, how should I modify the configuration file so that clients type ANY URLs, and the proxy rewrites the URL to something else?...
0
votes
1answer
23 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
28 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
0answers
22 views

httpd holding open too many connections on aws ec2 t2.micro

I've set-up an API server on a t2.micro (Amazon Linux AMI 2017.09.0.20170930 x86_64 HVM GP2) - it is written in PHP and is connected to RDS Postgres database (also on db.t2.micro). The system is ...
0
votes
1answer
49 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
65 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
19 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
6 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 ...
0
votes
0answers
35 views

How do you redirect when using a reverse proxy

I just setup a ssl certificate with certbot on ubuntu with sudo certbot --nginx. When asked during the setup if I wanted certbot to automatically redirect to https I choose that option but it didn't ...
1
vote
1answer
38 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
28 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....
0
votes
2answers
19 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
19 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
40 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
24 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
46 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
34 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
38 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
16 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
19 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 ...
0
votes
0answers
27 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
871 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
25 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
26 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 ...
0
votes
1answer
21 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 ...
0
votes
0answers
49 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 ...