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
6 views

Jenkins or Apache changes the URL when using reverse proxy [migrated]

I have a VPS that I use to run a personal Gerrit and Jenkins server. After a year of neglect I finally decided to get it working again. Previously I have used gerrit.server.com and jenkins.server.com, ...
1
vote
1answer
14 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
15 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=...
0
votes
1answer
32 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
0answers
20 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 ...
2
votes
1answer
25 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
19 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 ...
1
vote
1answer
35 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....
1
vote
1answer
20 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 (...
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
43 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/...
1
vote
1answer
19 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
31 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
26 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 ...
0
votes
0answers
74 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
45 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
173 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
2answers
51 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&...
1
vote
0answers
43 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
36 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
2answers
73 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 ...
0
votes
0answers
17 views

Apache: using mod_ext_filter to output html from custom program

I'm a little stumped. I have a DOS executable that I want to eventually run in my linux apache server. Research has led me to believe using the mod_ext_filter module is my best bet. I decided to ...
1
vote
2answers
94 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 ...
0
votes
0answers
4 views

Why Does Apache's ServerLimit Assign Extra Shared Memory, and How Much Does it Assign?

It's clear from looking at documentation that Apache's ServerLimit will cause extra shared memory to be assigned. If ServerLimit is set to a value much higher than necessary, extra, unused shared ...
0
votes
0answers
63 views

how to host flask website in virtualmin by using mod_wsgi?

I am trying to host flask webapp in virtualmin but for some reason it is not working.... I referred below links before hosting the site... but due to different folder structure in virtualmin got ...
1
vote
0answers
108 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. ...
0
votes
0answers
139 views

Environment variable in whm managed apache virtual host

I have an EC2 with CentOS, cpanel and whm installed. I have multiple accounts, linked with different subdomains. I have same php application deployed in the virtual hosts. I need to use environment ...
1
vote
1answer
201 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
2answers
138 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 ...
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 ...
0
votes
1answer
75 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? ...
1
vote
1answer
443 views

Some users are redirected to cpanel cgi-sys/defaultwebpage.cgi while other don't

I have a website which used to be hosted on a managed Bluehost plan that includes a cPanel by default. for some non-technical reasons, I've decided to move the website from Bluehost to an unmanaged ...
0
votes
1answer
142 views

SSL on staging server

I have three servers: development, staging and production. I use dev as a messy environment on which I write my code. Production is my clean, sparkly, shiny tidy web server. When pushing a new version ...
1
vote
2answers
58 views

Block any other domains from using my server

Someone has set their domain to use my server. It's not a mirror, the database and everything works and updates with mine. He's basically stealing my content, and he's showing up on google instead of ...
0
votes
1answer
32 views

Trying to understand the difference between two Apache SSL config statements

I'm using Apache 2.2.34, OpenSSL 1.0.2l. Yep, I know its sun-setted and not supported, but plans to upgrade it are not immediate. I'm trying to understand the difference between these two statements....
1
vote
1answer
90 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 ...
1
vote
0answers
37 views

Non subdomain is “not private” but subdomain is

I am trying to setup a website for my app domain using an Ubuntu/Apache server hosted on Linode and Cloudflare. The setup works for www.my.app but not for just my.app without the www. My ...
2
votes
1answer
21 views

Don't allow access to example.com/image/pic.jpg using htaccess

I have two domains for the same website. example.com and example2.com . I don't want the /image/pic.jpg to be accessible for the example.com It means, if someone try to visit example.com/image/pic....
2
votes
1answer
43 views

HTTP/2.0 loads resources in parallel, will that change dependency order of CSS and JS in my HTML source code?

I'm willing to use HTTP/2.0 on my apache server. I'm using apache over HTTP/1.1 and I have structured my site like this : <head> sharedJS.js 1.js 2.js sharedCSS.css 1.css 2.css </head> ...
1
vote
0answers
49 views

HSTS and redirecting to www. sub domain

I am trying to setup HSTS for my website but running into some problems regarding the response headers and the use of a sub domain. What I would like is for all HTTP traffic to redirect to https://www....
-1
votes
1answer
36 views

How to hide file extensions in the URL without removing them from HTML? (Apache2)

I'm quite new to hosting a website, so bear with me. I get that I can remove file extensions with the rewrite module. However, the ones that I've found requires me to also remove the extension in my ...
2
votes
1answer
283 views

http to https redirect triggers “Duplicate without user-selected canonical”

For some reason, my Main URL (https://www.foxteller.com) cannot be indexed because of my domain redirects in the apache2 config. My redirects go as follows: http://foxteller.com/ > https://www....
2
votes
1answer
185 views

Redirect from www and http to https doesn't work on sub-domains

I am trying to redirect all www and non-https requests to the HTTPS only versions with Apache server. I don't need or want www or non SSL URLs at all. The issue is that with the 2 different snippets ...
1
vote
1answer
35 views

How is the mapping done from …/script.php?one,1 to …/script/one/2?

There is a PHP script which evaluates one or two parameters via QUERY_STRING. This script should process the parameters via QUERY_PATH. The PHP file type should be omitted. Request of the form https:/...
2
votes
0answers
33 views

Can I check for thumbnail existence with RewriteCond !-f and have my controller create files that don't exist?

My team have an application written in PHP. Most requests are rewritten to our index.php file using the condition below, in the Apache .conf RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ /...
1
vote
0answers
24 views

Temporarily turn off redirects on all virtualhosts

Is there a configuration parameter I can set in the global configuration to disable redirects in all virtual hosts? I've got a server with a bunch of virtual hosts with varying configurations, many ...
1
vote
0answers
436 views

Apache FilesMatch to deny access to all “.config” files is working except for web.config

In my apache server I don't want to serve any files with extensions .config because it could contain potentially sensitive information. In my apache2.conf file I added: <FilesMatch "\.config"> ...
1
vote
1answer
151 views

VirtualHosts Not Working - Apache - CentOS 6

I have a VPS that has a web app on it and a website. The web app and the website have separate cPanels. Default root directory for web app is: /home/webapp/public_html Default root directory for ...

1
2 3 4 5
8