Questions tagged [apache]

The Apache HTTP Server is an Open Source Web server, which originated from a series of patches to the NCSA HTTPd. Apache is the world's most popular Web server, which is run on 54.90% of all Web servers according to the Netcraft survey conducted July 2010.

Filter by
Sorted by
Tagged with
1
vote
1answer
60 views

Apache not accessible from outside local network

I can only connect to my Apache server using devices on the local network and not from the outside. I think that this is a port forwarding issue, as I'm getting a Connection Timed Out for the port ...
2
votes
0answers
74 views

How can I keep WordPress files in sync on two servers behind a load balancer?

I have two Amazon Linux web servers with an Amazon Load Balancer, and I want to use WordPress to display content at the document root level only. The site has other subdirectories with PHP files that ...
2
votes
2answers
963 views

How can I display the MD5 or SHA1 of files in a web server directory?

When you don't have an index.html, most web servers will show a list of files in the directory. Can I get preferably lighttpd (but Apache as a backup) to do show a file's MD5/SHA1 (along with standard ...
1
vote
2answers
244 views

Moving RewriteBase rule in htaccess to httpd.conf

I'm now working in a server environment where I can access and edit httpd.conf, which is preferable from a performance and a revision control standpoint. I have a few sites (they are Drupal) running ...
1
vote
1answer
50 views

Clean URL's within subdirectories

I have a website with the following structure index.php contact.php about.html forum(dir) - index.php - thread.php What i want my htaccess to do Remove .php & .html extension, eg: when you ...
1
vote
0answers
24 views

Invalid command 'SSLEngine', with “--enable-ssl” configured Apache

I built an Apache 2.2.32 server on Ubuntu from sources, and if I test my phpinfo() I see: './configure' '--prefix=/usr/local/php_7.2.25' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysqli=/usr/...
7
votes
3answers
20k views

Physical memory usage issues with WordPress plugins

Occasionally, my website that's hosted with GoDaddy is crashing due to physical memory overload. My host told me that PHP processes are overloading the server, and to try to find out which WordPress ...
1
vote
1answer
330 views

How can I modify the DNS nameservers on aaPanel

Where can I navigate the DNS server on aaPanel platform because I just want to modify it? Thanks in advance.
6
votes
2answers
2k views

Mysterious ico files appearing on webserver

Files are unexpectedly appearing on one of my shared web servers. They can appear in pretty much hundreds of directories and they are always called something like favicon_1166f9.ico. The first 6 ...
2
votes
1answer
28 views

Four 301-redirects from “www.example.com” to “shop.example.com” (am I losing my Google PageRank?)

Some years ago, I started my website with the main domain www.example.com. However, the project ended up being a store under shop.example.com. I obtained hundreds of links to http://www.example.com, ...
0
votes
0answers
14 views

GA UTM tag sends user to Apache test page

Added Google Optimize to a website in order to do A/B redirect testing. All working fine except when a user searches for the site using specifically Google: They land on either a/b page for a split ...
1
vote
2answers
3k views

Override .htaccess from parent directory

I have a local LAMP stack (without the MySQL. LAP stack? Anyways..) and I am using this as a development environment for a production website. The site is placed in a sub-directory of the Apache2 ...
1
vote
1answer
34 views

How do I permanently remove all deleted pages Google (only the home page should remain)?

Google seems to have many pages in its index that I deleted years ago. My site currently has only the home page at example.com/index.html. What do I do in Apache to permanently remove all those ...
1
vote
0answers
278 views

Oracle HTTP server URL with no trailing slash causes redirect when HTTPS is used

My application is hosted in oracle weblogic 12c with OHS 12c and have SSL enabled at port 1234. URL as such HTTP : http://servername.example/webName HTTPS : https://servername.example:1234/webName ...
2
votes
1answer
36 views

Using .htaccess to map a random path to a private directory

I am trying to implement a zero downtime deploy strategy for a static website using an .htaccess file. I'd like to access at http://example.com/__staging__ the staging enviroinment redirecting ...
1
vote
0answers
300 views

Certbot challenge error 404 in webroot mode

This web site runs under Apache on Windows. I installed Windows certbot client and ran it as suggested on its homepage, in webroot mode, since the web site cannot be stopped. This is what it reported: ...
1
vote
1answer
251 views

update virtual host's SSL cert after cpanel has expired

I had setup the server, virtual hosts via cpanel. I didnt renew my cpanel subscription because I no longer needed it. Now my SSL certificate has expired. I have SSH access to the server. How do I ...
5
votes
3answers
20k views

Redirect to HTTPS is missing a slash after the domain name

I just set up HTTPS on my server, and I have an issue with redirect permanent. Example: http://example.com/index.html redirects me to http://www.example.comindex.html. The / (tail ending slash) is ...
1
vote
1answer
301 views

Rewrite URL with ID to one file using .htaccess

I have "home" directory as: /var/www/page I need redirect: /var/www/page/index/product/id/9098890 Where 9098890 is the id of product. to one file: /var/www/page/script/index.php I want ...
1
vote
1answer
50 views

Will a .com SSL certificate cover a redirecting .com.ar domain?

we have a website with 2 different domains: www.example.com or example.com and www.example.com.ar or example.com.ar I want all requests redirected to www.example.com. I know I have to create two ...
0
votes
0answers
50 views

mod_headers check for existence of multiple cookies and perform a function only on those cookies

I have a requirement on Apache 2.4 wherein I'd like to check for specific cookies and set the HTTPOnly plus Secure flags only on those Cookies and ignore other Cookies. E.g. On browser I have the ...
5
votes
2answers
15k views

.htaccess how to redirect the contents of a directory to a subdirectory

I'm trying to redirect the contents of a directory that is placed at the top level of my website, to a subdirectory one level deep. I also need to exclude two files and a folder. Nothing I've tried so ...
1
vote
2answers
149 views

How to redirect some URLs to another local port with .htaccess?

I have the .htaccess file in the root public_html directory. It contains the following: Options -Indexes Redirect / /dali RewriteEngine on RewriteRule ^api/(.*[^/])/?$ http://%{HTTP_HOST}:5000/$1 [R=...
4
votes
1answer
2k views

RewriteRule doesn't work for a CSS file and a document when a RewriteCondition is added to test if a name value parameter is in the query string

I'm trying to change the DocumentRoot to subfolder through .htaccess. This works well... RewriteCond %{REQUEST_URI} !subfolder/ RewriteRule ^(.*)$ /subfolder/$1 ...however, I only want to do this ...
2
votes
1answer
2k views

403 Forbidden error was encountered while trying to use an ErrorDocument

I am trying to configure Apache HTTP Server by running a web application using Apache's mod_fgcid, a module for FastCGI. I have put a configuration file which allows the interface of my app to be ...
1
vote
2answers
100 views

How to parse Apache access log for 404s not from bots?

The regex is easy for 404s in a typical Apache log: grep ' 404 ' access_log But many are coming from bots, which I don't care about. I'm looking for actual people hitting 404s. So I'm trying to ...
58
votes
7answers
185k views

What is the best Apache logs Analyzer? [closed]

What real-time log analyzer can you suggest for Apache access and error logs? There is a list of web analytics software on WikiPedia, but it would be great to hear opinions from people with ...
1
vote
1answer
38 views

Apache serves .svg file without Content-type header

Apache is serving an .svg file, but the HTTP response does not have a Content-type header. Consequently, Chrome is displaying the text of the .svg file, rather than the desired image. My goal is for ...
3
votes
3answers
2k views

Where does Apache get the 'last modifed' date for its automatic indexes?

I have a Solaris server running Apache, and I am using the following .htaccess to generate automatic indexes. Options +Indexes # SET INDEX OPTIONS IndexOptions +NameWidth=* Where does the "Last ...
3
votes
1answer
48 views

In Apache make subdirectory require basic authentication while parent directory is open to the public

I want to make the contents of the directory /srv/www/dssx (mostly) public. The sub-directory /srv/www/dssx/basic-auth of /srv/www/dssx I want to protect with basic authentication. However, I cannot ...
3
votes
1answer
64 views

How does cPanel's addon domain work?

So, I am new to the world of cPanel. How does cPanel's addon domain feature work? Does it utilise Apache Web server's VirtualHost feature? Or does it do something else?
2
votes
1answer
50 views

Configure Apache to show a custom page rather than my host's default when a user cancels logging in via basic authentication

I have a protected directory on an hosted IONOS server. It correctly works when the correct credentials are entered, but when a user hits cancel, it redirects that user to the hosting provider's promo ...
1
vote
1answer
76 views

Why I am not seeing HTTP 304 response codes in my Apache logs?

Why I am not seeing HTTP 304 response code in my Apache logs even though my webpages are sending them? I've checked this in Chrome console: My goal is to see which browsers are successfully using ...
1
vote
2answers
44 views

All pages are not being redirected to HTTPS when accessed using HTTP

I'm running a Wordpress blog that has an issue with HTTPS redirect. Except home page, no other URL is being redirected to HTTPS if you visit via HTTP. I want to redirect all HTTP traffic to HTTPS. ...
1
vote
1answer
1k views

htaccess redirect based on referrer URL string

I have a 3rd party who POST's to a specific page on my website. They post a file and my site does some wizardry with the contents of that file. The request URL would be for example https://example....
5
votes
3answers
27k views

What are the causes of a 416 Error?

One of my visitors from my website informed me that every so often (quite rarely actually), when trying to visit my website, he gets a 416 Error: Requested Range Not Satisfiable I've never heard of ...
1
vote
1answer
333 views

AH00558: httpd: Could not reliably determine server's fully qualified servername error after creating VirtualHost

I have installed an Apache server in CentOS 8 and it was serving both http and https pages correctly, that is, I could view the Apache test page when connected to the server from my browser I used ...
2
votes
1answer
158 views

Apache rewrite rule for parameter value to path while replacing slashes with underscores

Apache rewrite rule for, Query String replace / value with _ Source URL: http://example.com/my/service?opath=/content/home/page&appId=myapp rewrite to below http://example.com/my/service....
2
votes
1answer
24k views

How can I get a regular expression to only match an empty string? (In a .htaccess file)

I try to make a regular expression in a .htaccess file, that matches only an empty string. I have tried many things, but it seems like it’s impossible. For example, I tried ^$, but it's looking for ""...
1
vote
1answer
33 views

Sharing .htaccess files between directories on a server

I have a webserver with thousands of directories. Some need to be internal only, some need to reference specific IP addresses, some are public. These .htaccess files change from time to time with IP ...
2
votes
1answer
13k views

How to avoid “chunked” Transfer-Encoding?

How to avoid chunked Transfer-Encoding ? Is there any benefit with this encoding? Below is what appears as part of Apache Web Server (V2.4) header message: Connection: Keep-Alive Content-Type: ...
1
vote
1answer
24 views

.htaccess redirect to “410 Gone” status for URLs containg one letter + word “shop” after domain

After I recovered Drupal 7 site from malware attack I end up with lot of links pointing to (previously) spam content like this: https://www.example.com/lshop/puma-rihanna-c-449/?zenid=...
5
votes
4answers
5k views

Apache - Force https by default on custom port

I am hosting a control panel for web management on a second Apache instance that runs on port 2083. It has port 2082 for the HTTP version of the site because it needed something to run the HTTP ...
1
vote
0answers
24 views

mod_pagespeed & Virtualmin - mod_pagespeed only active on one virtualhost

I've installed mod_pagespeed on a server running Virtualmin. Mod_pagespeed is only active on the first virtualhost (Alphabetically). How do I enable mod_pagespeed for all virtualhosts in a Virtualmin ...
1
vote
1answer
44 views

Apache: redirecting an entire directory to the root of another site

I want to redirect everything from a certain subdirectory to the root of another site, i.e. without the subdirectories: example.com/jobs should be redirected to jobs.example.net everything path ...
5
votes
1answer
3k views

421 Misdirected Request on Shared Host

I am on a shared host (Apache) and am receiving little help resolving this issue. I have a main domain https://www.waldorfteacherresources.com and I have set up two cookieless domains: static....
1
vote
0answers
30 views

Website was not redirect from non www to https+www

I'm currently doing www+https redirection where I hope that my website able to redirect from http://example.com to https://www.example.com but it does not work even I have added redirection in ....
11
votes
3answers
28k views

htaccess redirect non-www to www with SSL/HTTPS

I want a rewrite rule that redirects everything to https:// AND www. For example http://example.com should be going to https://www.example.com This is what I have: RewriteEngine On RewriteCond %{...
5
votes
1answer
412 views

Redirect all URLs exactly except one URL that must be redirected to a different URL

I must to change domain from example.net to example.com. To redirect all URLs exactly (www and non-www) I use: RewriteEngine On RewriteCond %{HTTP_HOST} (w*)example\.net$ [NC] RewriteRule ^ https:/...
2
votes
1answer
62 views

Apache .htaccess Redirect and RedirectPermanent directives do nothing

I am trying to do a very simple redirect for an entire web site using instructions from sites like this and this, and several others that say the same thing. I am using Apache. My .htaccess file ...

1
2
3 4 5
23