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
0answers
25 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 ....
1
vote
0answers
24 views

Apache: redirect directory to root other site

I want to redirect everything from a certain subdirectory to the root of another site, i.e. without the subdirectories: See the following example: company.com/jobs should be redirected to jobs.site....
0
votes
0answers
18 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 ...
0
votes
0answers
6 views

Mod SSL compiled against server [migrated]

I have an issue with www+https redirection and I saw this error in logs: [ssl:warn] [pid 204:tid 412] AH01916: Init: (localhost:443) You configured HTTP(80) on the standard HTTPS(443) port! So I ...
2
votes
1answer
36 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 ...
5
votes
1answer
126 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:/...
0
votes
0answers
25 views

You configured HTTP(80) on the standard HTTPS(443) port! [duplicate]

I currently have a website which runs under https and works with no issue and I've tried to do something on my .htaccess file so that when I try http://example.com it will redirect to https://www....
2
votes
0answers
20 views

How to customize 3xx status pages in Apache?

How can I customize the 3xx status pages Apache? I am able to customize the 4xx and 5xx error pages using the ErrorDocument directive. I have tried the same for the 3xx status pages, but no good. I am ...
2
votes
1answer
34 views

How to redirect all that URLs that ends with “-2” to the same link without “-2”?

I have an comparison website based on woocommerce and I have the following problem. I have 1 product from 2 vendors: Vendor 1: https://example.com/lista/ceas-accurist-signature-7220-classic/ Vendor ...
2
votes
1answer
74 views

set header 410 for random generated folder path

I have thousand of error URL with patterns like this https://example.com/feeds/74750882288885xxx/comments/default where 74750882288885xxx is a random number, I need help to set this URL to be 301 ...
2
votes
1answer
85 views

mod-rewrite - sending any URL with “.php/” to 404

I have a substantial number of rewrite rules in place for a variety of reasons such as: disallow indexes, set custom error pages, force non-www, https, strip trailing slash, redirect index.html or....
1
vote
1answer
33 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
28 views

Create alias URLs including a path to redirect or forward to other websites

To unify the complex URLs of different social media profiles I want to create forwardings/redirects from my own domain to the domain of the respective profile. For these alias domains I want to use a ...
0
votes
0answers
12 views

apache .htacess redirect to treat root domain with or withought / as a single page not 2 page [duplicate]

I have developed a dynamic PHP website and code is written in core PHP (NO CMS or Framework used). When I am checking with SEO tools it is saying duplicate content for https://sattamatkaa.in/ and ...
2
votes
1answer
32 views

Detectify false positive (CVE-2013-1966 on uwsgi/nginx)?

Detectify has laready twice informed me of a vulnerability on my website. It is about CVE-2013-1966 (Apache Struts). However I am not even using Apache, my server runs Django on nginx. Can I safely ...
0
votes
0answers
5 views

How to terminate Cpanel account from the list of Cpanel Accounts in WHM

We have some 30 Cpanel accounts in our server. I can browse the CPanel accounts by WHM >> Home >> Account Information >> List Account Some of them are in no longer use and some of them are ...
0
votes
1answer
21 views

Google Crawl rate & the log file mystery

According to Google Search Console for a website I am working on, Googlebot crawls ~5000 pages per day (min 2500, max 8500). However, when looking at the Apache log files, GoogleBot only shows up ~10 ...
0
votes
0answers
60 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
41 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 ...
2
votes
1answer
36 views

.htaccess - RewriteRule for 404 and query

I am very new to this stuff. I have a website with these RewriteCond/RewriteRule directives. Options All -Indexes RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}...
0
votes
0answers
11 views

Apache Video Play Statistics

I have an Apache web server that is currently serving MP4 video files to a WordPress.com website. On the WP site - I am direct embedding the MP4 video files that are hosted on the Apache web server. ...
1
vote
2answers
472 views

Reverse-proxy to hide iframe origin. How does that work?

Somebody told me to use a reverse proxy to make iframe content relevant for the website embedding it. But I can't get my head around how would that work? As I understand it, I would need a reverse ...
1
vote
1answer
42 views

How to map many old URLs to a new host with a redirect under Apache cPanel?

I moved some of the content on my website to an external site. However, a lot of places on the Internet still link to the missing pages, resulting in 404 messages. What is the best method of ...
1
vote
1answer
32 views

How redirect directly to the final domain URL rather than a chain through variations of `www` and `https`?

When I type example.com in the URL it first redirects to http://example.com then to https://example.com and finally to the https://www.example.com (the original address). Why doesn't it straight away ...
4
votes
1answer
756 views

Deny access to all PHP files using FilesMatch, but make an exception for one file

Currently, using htaccess I am denying access to any PHP file in a directory, but not the JS, PNG, CSS files in the same directory. <FilesMatch "\.php$"> Order deny,allow Deny from all </...
2
votes
1answer
148 views

Redirecting index.html to root + folder index.html to root folder? (multilingual)

I have example.com page. I want a homepage without index.html (example.com/index.html -> example.com) RewriteEngine On RewriteRule ^index\.html$ / [R=301,L] RewriteRule ^(.*)/index\.html$ /$1/ [R=301,...
0
votes
1answer
41 views

Is Apache hosting better for a WordPress site? [closed]

I have a legacy (early 2000s) Windows IIS hosting package on a company that originally was for a static html site. I have since created a WordPress site on a subdomain of the old one. The problem is ...
2
votes
1answer
48 views

Redirect hundreds of subdomains to the main domain with path forwarding, use .htaccess?

I want to redirect from a subdomain to domain along with URL path forwarding. Example: abc.example.com/products.html TO another.example/products.html The trailing URL should be preserved. We ...
1
vote
0answers
22 views

Which browsers handle client-side compression of requests such as POST'ed formdata?

Which browsers handle client-side compression of requests, such as "multipart/form-data" transmitted by the client to the server via HTTP POST ? The HTTP server I am trying to get this working with ...
3
votes
1answer
354 views

Proxy a domain from one server to another and retain domain name

I have a single external address that points to a server that is serving multiple domains using virtual hosts. I would like to serve one of the virtual hosts on a new physical machine and am trying to ...
3
votes
1answer
68 views

Apache redirect all requests for file type to 404

I have some .inc files that I want blocked from being accessible via web pages. I want to simply redirect them to another page or throw a 404 when those files are accessed. I have tried this so far ...
1
vote
1answer
550 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....
1
vote
1answer
52 views

subdirectory htaccess url rewrites

I have a project with this skimmed structure: -proj -----pages ---------example -------------pages -------------.htaccess ---------.htaccess I managed to get it working so that all url's go to /...
0
votes
0answers
15 views

CPanel - replace all references in user account of domainA with domainB

Trying to solve an easy case for when a user's domain name expired (and got stolen by squatter wanting a ransom!), for a global replacement of any text in that user's cpanel folder of the old expired ...
2
votes
2answers
71 views

Restrict access for a virtual URL path that is reverse proxied from Apache 2.4 to Tomcat backend

How can I configure restriction for URL generated by opencms application on Apache Tomcat? I tried <Location "/cs/intranet"> order deny,allow deny from all allow from XXX.XXX.XXX.XXX </...
2
votes
1answer
117 views

How to configure .htaccess to rewrite all requests into a folder, except a list of exceptions

I have an established website with some legacy folders I would like to keep. https://example.com/.well-known/ https://example.com/Music/ https://example.com/Rutabagas/ I've also installed ...
1
vote
0answers
37 views

Wordpress Multisite with own domain, Webmin/Virtualmin

I am using CentOS 7.6, Webmin 1.930, Virtualmin 6.07 Pro. and Wordpress Multisite (5.2.3) and have it all working but can't work out how to setup a domain for each Multisite. I think I need to ...
1
vote
0answers
18 views

Hosting multiple websites using MAMP without exposing sensitive files?

So here's the thing, I've created 3 projects which I would like to somehow host simultaneously so that each of them can be viewed at any time. Currently, I am hosting them myself using MAMP, however, ...
2
votes
2answers
47 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
43 views

Setting up Grav as a subdirectory on existing website

I followed the instructions from here (part 4 only) for setting up Grav. I already have an existing website which is at var/www/html on my web server, and the home page is an html file called index....
0
votes
0answers
16 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 ...
0
votes
0answers
16 views

How to point my domain to a my server's IP address and configure it to show my website? [duplicate]

I'm doing website on the Linux server (still learning) And I have on 1 IP address to host many web sites. I will have them separately. For example 104.000.0.000:203 for one website and 104.000.0.000:...
1
vote
0answers
21 views

Apache: using %{DOCUMENT_ROOT} inside <Directory> section

My virtualhost configuration file sites-available/site.conf contains (some lines omitted): <VirtualHost *:443> <Directory /var/www/html/my_website> # set options </Directory>...
0
votes
0answers
416 views

How to fix .htaccess error? Keeps asking for authentication

I'm setting up basic http authentication for my subdomain dev Laravel site with .htaccess and .htpasswd. First, I created my .htpasswd user and password by command htpasswd -bc .htpasswd admin ...
1
vote
0answers
28 views

Evil twin httpd caused by failed Roundcube installation [closed]

Note: I originally asked this on Server Fault and was told it was against the rules for mentioning Webuzo, so please do not ask me to take it there. System: VPS running CentOS 7 and Webuzo. httpd and ...
3
votes
1answer
147 views

HTTPD Redirect Doesn't Work with Environment Variables

We want to redirect users from an old domain to a new domain defined in an environment variable: SetEnvIfExpr true SERVER_HOST_NAME=mynewdomain.example The follwoing works in Apache 2.4 to redirect ...
1
vote
1answer
376 views

How can I change URL Letters from Upper to Lower case in htaccess for a specific folder?

I'm a bit stuck, so thank you for any help! In short I'm trying to convert either of the two examples (I have mod_rewrite from the first to the second already). I only want this to apply to the ...
0
votes
1answer
93 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 ...
0
votes
0answers
36 views

Is it normal for apache to overwrite your configuration files on update?

I updated apache (httpd) through yum on centos. Unexpectedly apache failed to start after the update. After investigating I noticed that it regenerated a whole slew of conf files in conf, conf.d and ...
1
vote
1answer
336 views

NodeJS app is deployed to port 8080

This might be a very simple question but I don't know what to search to solve my problem. Please feel free to direct me to the right resource, that would also be very helpful. This is my first time ...

1
2 3 4 5
22