Questions tagged [apache2]

Apache (HTTP Server) /əˈpætʃiː/ is a modular cross-platform web server software with a large variety of features(called modules) including SSL, compression, log, proxy and server-side programming language interfaces like Perl, Python, Tcl, and PHP.

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

How to send emails from any address with postfix? [closed]

I'm very familiar with PHP, and I used to use the mail function. I really want to be able to use it on my Raspberry Pi 4 apache2 server. I have php installed, and the mail function always returns true....
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 ...
4
votes
4answers
1k views

PHP 5.6.6 loading but not interpreting in Apache2.4 64 bit Windows

I have installed Apache 2.4.12 (Win64) VC11 from Apache Lounge. Typing httpd -M tells me that php5_module is loaded and shared. I have PHP 5.6.6 win32 VC11 Thread Safe installed. The Apache server ...
0
votes
1answer
13 views

Wamp VirtualHost not available to local network machine or Pointed to Domain

I installed the Wamp server stack on a loan machine (until new one arrives) to keep my site going. I configured the VirtualHost to point to port 7075. I included the directive to Allow All but it ...
2
votes
0answers
43 views

Running PHP echo $_SERVER ['DOCUMENT_ROOT']; Shows Apache Default Path

Trying to get set up and running on a new hosting company after the old one announced they are discontinuing their service at the end of the year, I am having difficulty getting the sites to run. I ...
3
votes
3answers
6k views

Using PHP inside .html files not working as expected

Apache2, Linux, php5 I have added this line to my .htaccess file AddType application/x-httpd-php5 .htm .html running apace2ctl -m, shows this module loaded A php5_module (shared) I have a ...
0
votes
0answers
8 views

SSLEngine and ProxyPass in one VH

I've got a virtual host configured with my Apache/2.4.23 (Linux/SUSE) webserver. I've got ProxyPasses that are directing to a Tomcat Webserver running on that same machine. My certs are correct and ...
2
votes
1answer
65 views

Why does RewriteRule for “^//(.*)” (begins with double slash) not redirect to a single slash?

Have this rewrite rule in vHost context. But it does not rewrite requests that begin with //.* (double slash). Just serves them up from /.* (single slash) instead of responding with a redirect to /.* ...
1
vote
1answer
45 views

WordPress redirecting to itself

I have the following error in my apache2 error log (Ubuntu 18.04, local LAMP dev environment, PHP7.3), that I believe is causing a The page isn’t redirecting properly error: Apache Error Log [Thu Aug ...
2
votes
1answer
40 views

Apache mod_rewrite in .htaccess

This should be a simple question. Checked Google but it listed nothing helpful. I use WP on one of my sites and it already generates a mod_rewrite section with: <IfModule mod_rewrite.c> ...
1
vote
0answers
35 views

Apache2 virtual host website redirecting users to router configuration page [closed]

I am running apache2 on Linux Mint Debian Edition 4.0. I am an apache newbie. I have setup a virtual host to point to my url. I am using dynu.com for virtual DNS redirection using the ddclient ...
6
votes
1answer
195 views

HTTP2 is enabled and working, but PHP $_SERVER['SERVER_PROTOCOL'] still says “HTTP/1.1”

I've been migrating to a new host (AWS Lightsail with a Ubuntu instance) and while everything is working just fine I'm running into a quirk that I can't quite figure out. I've enabled HTTP2 on my ...
1
vote
1answer
62 views

Apache, Redirect is not working for substring

Issue In apache, how can I redirect to homepage in case if you will go to exact string, but everything behind this string should be displayed normally, no redirect. Example. http://example.com/...
2
votes
1answer
57 views

Converting nearly 200 redirects into redirectmatches

I have close to 200 redirects that I would I to bring down to maybe a few dozen. Most look like the following. Redirect permanent /Fandom/Fictional_artifacts.pl /Fandom/index.pl?page=Fictional+...
1
vote
1answer
19 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 ...
2
votes
1answer
42 views

Apache2, redirect too many times, but I don't know why? How can I analyze and solve?

when I try my website on localhost, browser shows me redirected you too many times. I tried everything, but no success. Tested on another server too, same situation. How can I determine the problem ...
0
votes
1answer
99 views

How to remove subdirectory and index.php from URL with htaccess?

I've got an apache website stored on the server at /var/www/website/ and it's the only one on that server. I'd like to adjust the URL accordingly. How can I make an .htaccess rule that would do this? ...
0
votes
1answer
34 views

Visit a homepage: processing but no response

Updated: I used Chrome inspect and got this, What I did on my EC2 is to extend AWS EBS volumes from 10G to 13G, and rebooted my machine. Is it relevant to my issue? My disk usage: $ df -h ...
1
vote
1answer
15 views

Apache2 hosted site gives 400 Bad Request when browsing to http://www.example.org, but works perfectly on http://example.org

So i've got a website hosted at example.com and I want it to work with www.example.com. I've got a CNAME entry in my DNS for www pointing to example.com. My virtual host config looks like this: <...
1
vote
1answer
17 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=...
1
vote
0answers
23 views

How to direct Apache2 HTTPS sub-directory request to HTTP app server on another port?

for complete Apache newbie, I have NextCloud and Monitorix running on my local server https://192.168.1.2/nextcloud http://192.168.1.2:8080/monitorix and I would like to cover it via SSL, something ...
1
vote
1answer
1k views

CGI with Reverse Proxy Settings (Apache)

I have two VMs running two webapps. We want to use example.com/foo for accessing VM1, and example.com/bar for accessing VM2. For both VMs I need to call a cgi script for downloading. So I have ...
1
vote
1answer
179 views

Apache CacheIgnoreURLSessionIdentifiers to ignore select query string params

I am looking for a way of specifying a list of query parameters that I want to ignore for caching. Can I use the directive CacheIgnoreURLSessionIdentifiers to ignore select query parameters ...
1
vote
2answers
55 views

What is “ineedthispage”? Where is it coming from? It is killing the server

I am seeing the following in my "access_log": ip.address.output.here - - [12/Dec/2019:15:17:07 +0000] "GET /pathto/article/15104133/?ineedthispage=yes&ineedthispage=yes&ineedthispage=yes&...
2
votes
1answer
27 views

Subdomain doesn't redirect correctly when using HTTPS

When using a sub domain it redirects to my default page/domain. This only happens when using HTTPS.. for example https://forums.example.net - takes me to example.net ...BUT http://bans.example.net - ...
1
vote
0answers
10 views

Challenges setting up httpd-vhosts.conf Apachev2.4

I will start this by saying that I am educated as a mechanical engineer, working as a Control Systems Engineer (electrical engineering) and I've been tasked with setting up a Web Server for a company ...
1
vote
1answer
26 views

Thousands of “Apache/2.4.41 (Unix) OpenSSL/1.0.2r (internal dummy connection)” in my logs

I'm checking the logs of my Apache server, and I've found thousands of records per day like the following one: ::1 - - [23/Feb/2020:21:56:23 -0500] "OPTIONS * HTTP/1.0" 200 110 "-" "Apache/2.4.41 (...
1
vote
1answer
44 views

How to remove slash from directory when there are more rewrite rules in the subdirectories on Apache?

I've an Angular applicaion in multiple languages. After the build process there exist a distribution for each language. These are put onto the server in locale directories: /en/index.html /fr/index....
0
votes
0answers
4 views

Doubts about Apache configuration example for pre-compressed content

While reading the Serving pre-compressed content section of the mod_deflate documentation, I am getting some doubts about the completeness of the configuration suggested there. As written, the ...
1
vote
1answer
39 views

Prevent apache from using machine host name

In our office, we have a public facing server whose machine hostname is server16. We want Apache to only respond to requests on server.example.com. We have a VirtualHost entry with ServerName server....
1
vote
1answer
20 views

Apache Server - Wrong X.509 Certificate only on some virtual hosts

I have two virtual hosts using the same certificate... yet apache returns the localhost certificate for only one of them. openssl s_client -connect 127.0.0.1:443 -servername domainA.com -tls1_1 shows ...
1
vote
1answer
32 views

Where To Configure SSL On Nginx Reverse Proxy or on Apache2 on Ubuntu 18.04 Server?

My question is about SSL/TLS. I'm running Ubuntu 18.04 server with: Apache2 serving 3 public domains on 1 public IP. On the same server I'm running: Nginx and will configure as a reverse ...
3
votes
1answer
4k views

SSL Labs Cipher Strength < 100%, why? How do I make it?

I am in a progress of trying (again) to get maximum (or almost maximum) score on SSL Labs with my site. I currently do not understand, why it does not give me full Cipher strength score. Now, it ...
0
votes
0answers
80 views

Mod_rewrite rule for Magento2 to access sku with # in

I have an issue similar to this question Redirect URLs with a # in .htaccess I'm trying to access Magento 2 api at /rest/all/V1/products/sku. This works for majority of products but some have a # ...
2
votes
1answer
47 views

Apache2 on Linux - Virtual hosts only working locally

I just recently started to set up Apache on my Linux computer. I decided to use Virtual hosts because I want to run 2 web sites on the same machine. I set up both config files according to a tutorial ...
3
votes
1answer
196 views

Configuring .htaccess to block every request what not image in specified folder and subfolders

I have upload folder where registered user can upload files. How to block all http requests except .png .jpg .gif to upload folder and all sub-folders? Other than upload should not be affected. It ...
1
vote
0answers
53 views

Cloudflare + Forced SSL + auth on directory

I hope I'm asking in the right area. Here's what I have. Apache 2.4.18 on Ubuntu 16.04 server. I have my main website in a vhost, call it domain.com. This is proxied through CloudFlare. I also ...
3
votes
1answer
38 views

WP Apache .htaccess redirect .com traffic to .co.uk Issue

I have a website I am looking to redirect .com traffic to .co.uk. For the moment, when I navigate to https://example.com, it redirects to https://www.example.co.uk and displays as such in the address ...
2
votes
2answers
48 views

Apache: sd.example.com and sd.example.com/sd both work - how to disable?

I've got a vhost set up for sd.example.com. DocumentRoot is htdocs/sd. Browsing to sd.example.com works as expected. But if I browse to sd.example.com/sd, I get the same result. Is this expected ...
1
vote
1answer
95 views

Apache2 sending virtual host with matching servername to a different virtual host

I have 2 separate domains that I want to host 2 different servers on. I have both conf files set up, but the problem is; going to my second domain in my browser sends me to the first virtual host and ...
0
votes
2answers
293 views

Google site verification of www https site redirected from domain

I have an Apache Tomcat 8 web app correctly running on my website that is reverse proxied to the Apache2 server which serves up the web app at my domain name. I then provided alias' in my site's conf ...
1
vote
2answers
88 views

How to get document root set to user's public_html under LAMP cPanel?

I just opened a new VPS hosting account, with a hosting company I haven't used before, and I can't get the server to pick up the public_html directory in my user account's home directory. The server ...
1
vote
2answers
107 views

Apache redirect HTTP to HTTPS without preventing HTTP

Background I've added an SSL cert using Lets Encrypt/Certbot on my Debian 9 (Stretch) host. To modify my Apache configuration, essentially certbot copies the vhost.conf file, wraps it with and ...
1
vote
2answers
196 views

Issues with redirect rules to redirect all URLs except one page

I need to add following Apache redirect rules to .htaccess: http://www.example.com to be redirected to http://www.onemoreexample.com but http://www.example.com/support should not be redirected. To ...
1
vote
1answer
362 views

Multiple pages under single directory redirection to a single Page

I have the following scenarios for web page redirects 1) All pages under www.oldexamplesite.com/page/product/New-Design/* and All pages under www.oldexamplesite.com/page/product/nature-of-design-...
1
vote
0answers
165 views

How to turn off Apache proxy HTML correction

I'm using Apache proxy to access a web application on a VM. The proxy configuration works great, no issues. However, a side effect I see is that the Apache proxy "fixes" HTML that is being proxied. ...
3
votes
3answers
32k views

Configure apache to make local website available for external people

I would like to make my local website (running on a virtual CentOs machine) accessible for my mate who is also working on the website. I have created a new line in my router config to forward all ...
0
votes
0answers
15 views

cgi problem command line ok but 403 on website

I am running on Debian 9 strech, hello.cgi on command line perl -cTw hello.cgi all is fine When i try to navigate to the subdirectory I get an error 403. I add some lines to apache2.conf to ...
1
vote
1answer
1k views

Using Apache's rewrite module to set up local host names for development

I have several websites on my development machine under Apache's htdocs folder. Apache Directory root is htdocs, but I want to be able to access each different site there by individual domain names. ...
17
votes
2answers
11k views

StartSSL certificate gives SEC_ERROR_REVOKED_CERTIFICATE in Firefox and ERR_CERT_AUTHORITY_INVALID in Chrome

My existing HTTPS certificate is expiring soon so I bought a new one. I'm having a very hard time installing it properly though. I have a wildcard certificate from StartSSL for *.deadsea....

1
2 3 4 5
8