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 votes
0 answers
11 views

How to make my site say its secure (Google cloud hosted)

I have a website hosted on Google cloud with a domain for it, it's a WordPress Google Cloud marketplace deployment on a virtual machine I got by following these instructions: link So far I've found ...
user avatar
2 votes
1 answer
89 views

Non-ascii characters in RewriteRule :alpha:

I have RewriteRule ^([[:alpha:]]+)$ do-something.php?parameter=$1 and it works for URLs like .../Virtanen. For .../Mähönen I can use ([ÄÖäö[:alpha:]]+, but that of course fails for, say, .../Vadén. ...
user avatar
1 vote
0 answers
9 views

Deny non-local Apache requests that match a specific URL pattern

I need to configure my Apache (2.4) in a way, that It prevents answering requests that don't come from the same IP as the server match a specific pattern in the URL In pseudocode it must look ...
user avatar
1 vote
1 answer
41 views

Hide subfolders in URL with .htaccess

I have a URL structure like this: example.com/this/is/nice/index.php and I want achieve this: example.com/this/index.php How can I add a rule to hide the /is/ and /nice/ subfolders ?
user avatar
0 votes
1 answer
23 views

Earliest / easiest to implement way to detect browser, version, and screen size?

I'm currently experiencing something like a 90% difference between PPC clicks and GA4 reported devices. The only operating theory I have is that users are dropping off before Google Tag Manager loads ...
user avatar
2 votes
0 answers
18 views

Only some computers can access local apache server some of the time (windows 11) [closed]

I've set up an apache server with a Django app and followed all the configuration steps to make it accessible on my LAN. In my office there are about 15 computers. We're all on that same WiFi network. ...
user avatar
2 votes
1 answer
46 views

Apache htaccess detects disallowed method but does not return error page

I am trying to see if a custom error page can be sent to the browser when an invalid method is sent to the server. In my .htaccess is this: ErrorDocument 400 /errpages/httperror.php ErrorDocument 401 /...
user avatar
1 vote
0 answers
31 views

Apache reverse proxy to NodeJS app on LAN

I have a LAN network with a server and client at addresses MYSERVER.IP and MYCLIENT.IP. The server has a nodeJS app running on port 3000. Navigating in the browser from the client machine to MYSERVER....
user avatar
  • 11
1 vote
0 answers
23 views

I'm having trouble accessing my Plesk Panel on the remote server after Node.Js installation [closed]

I'm having trouble accessing my Plesk Panel on the remote server. I used Apache Web Server in Plesk Panel. But for an application development I had to use Node.Js. So I searched Plesk official website ...
user avatar
2 votes
1 answer
103 views

Rewrite URL with one unnecessary parameter

I have the following URL examples. Example one is a URL without "amps" parameter: https://multilang:8890/uk/seconddoc.html/ there I have a 404 error. And an other one with that amps ...
user avatar
2 votes
1 answer
62 views

How to stop backslash working on XAMPP

I have XAMPP installed on my Windows development machine and I always use Linux production machines. The most common mistake I make is to use a backslash for filespec. Either slash works on Windows,...
user avatar
1 vote
0 answers
44 views

Why do i get a forbidden error when i change the symbolic-link for typo3? [closed]

I am currently using Typo3 8.7.32 and would like to update to the ELTS version 8.7.45. I have tried to install the new version manually via the Plesk web interface. When I change the sym-link in the ...
user avatar
  • 11
4 votes
1 answer
106 views

How to install WAMP with multiple hosts on a non-standard port, over a FIOS connection?

I am trying to upgrade my server on a home network, supporting a few personal and club websites. The issue: An aging legacy server running in an internal network (that includes several personal use ...
user avatar
  • 71
1 vote
0 answers
15 views

AWS EFS setup for general site, throughput concerns

I want to use AWS EFS combo to setup a site with 2 EC2 instances reading off an EFS drive. My site is basic, Php Mvc ( all dynamic content ), 20 MB of files spanning templates ( + users templates ), ...
user avatar
1 vote
1 answer
88 views

Test website can't be reached despite setting up DNS in local hosts file and adding a virtual host to Apache config

I am trying to set up a domain on my development machine so that I cant test slightly more complex htaccess rules. I am trying to set up example.city domain. Following what I find by googling, I have ...
user avatar
3 votes
2 answers
37 views

How does the server remember logged in users on a password protected website via .htaccess?

So basically my question is just a technical one. We password protect our development server so that no duplicated content appears to google if we mirror an existing website. How does the server ...
user avatar
2 votes
2 answers
82 views

Apache maintenance page htaccess without being overriden by subfolder

I want to perform a maintenance on my website, so wrote an htaccess (I do not own the server) to redirect users to a specific page. <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{...
user avatar
1 vote
0 answers
22 views

Browser appends a '?' to links on page, but the '?' does not appear in the source [closed]

I'm a little puzzled with the following problem: When I hover over a link a WordPress site I'm looking after, I can see that the URL is https://xxxxxxx.com/apply-now/? All the links on the page have ...
user avatar
0 votes
1 answer
23 views

System to distribute update files [closed]

I'm a bit new to the web side of programming. Can I use Apache for file hosting and recording of clients that download a file? I need to distribute update files to clients and want to record client ID'...
user avatar
2 votes
1 answer
243 views

Why can't I access an Apache web server on a local network with my phone?

I have a website that needs to work only on my local network, I am hosting it on Apache, I have already done all the steps to make it accessible from any PC and laptop, but for some reasons if I try ...
user avatar
2 votes
1 answer
50 views

Why is this htaccess evaluating to 302 redirect instead of internal rewrite?

As an example, I was expecting this https://example.software/credits to evaluate to an internal rewrite https://example.software?mode=credits Why is it showing up on the browser url-bar as a 302 ...
user avatar
0 votes
0 answers
33 views

X-Robots-Tag across Multiple URL

I need to add X-Robots-Tag in my Apache config where it can be applied to multiple URLs which are read from a file and apply the X-Robots-Tag HTTP header, is this possible? Any pointers on how to ...
user avatar
2 votes
1 answer
54 views

How can I rewrite a URL to use a new path for Apache?

How can I rewrite a URL so that following is achieved: example.com/old/index.htm is redirected to example.com/new/index.htm ? I've tried to add the following RewriteRule in my server config vhost to ...
user avatar
  • 287
0 votes
0 answers
151 views

Google is Indexing Some Pages With IP Instead Of My Domain [duplicate]

I have a Wordpress website and for some reason Google is indexing 50% of my pages with the servers IP address instead of the domain. For Example: https://3.333.33.333/products instead of mysite.com/...
user avatar
1 vote
1 answer
63 views

How to point a domain name to a subfolder

I have a working website: https://www.example.com It is a bit old, and now I want to make a new website. I don't want to make it on localhost but directly on the web. I was thinking to make the ...
user avatar
0 votes
1 answer
33 views

Restricting access to a website without using sessions or IP whitelisting? [duplicate]

I want to restrict access to a private website that needs to be accessible to multiple people. In the event the website has public and private areas, a login to a user session is the usual solution. ...
user avatar
2 votes
1 answer
41 views

htaccess - RewriteCond is met, but RewriteRule doesn't run

I am trying to match both a filename and querystring in my .htaccess file. When using an online testing tool (this one), it tells me that the conditions are being met, but the following rule doesn't ...
user avatar
  • 23
2 votes
1 answer
61 views

Content that should be protected is served without authentication intermittently

Our website hosting is with a shared hosting provider. The only configuration we can make is through .htaccess files, we can't touch the apache configuration files that are sourced when apache first ...
user avatar
0 votes
0 answers
23 views

Rewrite local file links

I have *.html files accessible through file:// protocol in browser. Within these files are links to resources, like <img src="file:///c:/users[...]pic.jpg">. This all works fine for ...
user avatar
2 votes
1 answer
203 views

Block access to multiple files with .htaccess - RewriteRule and FilesMatch fail

I am trying to block access to specific files. Neither the RewriteRule or FilesMatch rules I have tried work on the live server, it serves the files as normal with status 200 OK (I'm expecting 404 ...
user avatar
3 votes
2 answers
66 views

Is it possible to display the path with an Apache index listing with a custom header?

I've set up a download site using Apache's index listing feature and a custom header: Options +Indexes HeaderName /index_header.html While the default header displays the path ("Index of ...&...
user avatar
  • 133
2 votes
1 answer
133 views

Redirect requests on alternate port for Apache virtual host

I have Apache server where I make my LoadBalancer for my application sereres through proxy and balancermember. Some of my clients come from legacy access, they use a port in the URL example.com:2030 ...
user avatar
2 votes
1 answer
76 views

Can mod_security run in a “permissive” mode?

SELinux has a "permissive" mode where violations are logged but not enforced, thus allowing for debugging and troubleshooting before locking the system down. Is there such a feature in ...
user avatar
1 vote
1 answer
70 views

PHP file not running using XAMPP [closed]

I recently installed XAMPP v.3.2.2. I have since been trying to test if PHP is properly configured by Apache. But I keep getting this error every time I try to run any PHP file. I have stored the ...
user avatar
  • 11
2 votes
2 answers
80 views

Do short URLs obligate 301 redirects?

Some content management systems such as WordPress and Drupal have Short URLs by default (if the webserver allows it), but at least one other --- MediaWiki, doesn't. Before I continue with the process ...
user avatar
  • 57
1 vote
1 answer
106 views

A modern global rewrite command for HTTPS websites without cname (www.) at all

I host a MediaWiki website on a shared server with Apache, MySQL and PHP. Up until today I used a CDN to deliver that website's content --- which required redirecting each webpage to a www. including ...
user avatar
  • 57
0 votes
1 answer
34 views

Can I ban IP based on page GET then instant POST? (Spambots)

While there are lots of rules to id and ban spambots, e.g., Fail2Ban rules, it's always a cat-and-mouse chase. Nothing's perfect. Then it hit me. The one thing they always do is get a page, then ...
user avatar
  • 143
1 vote
1 answer
55 views

Safe way to block unwanted bots without potential impact on good ones

Currently, I have blocked several bots in htaccess (apache 2.4) like this. (Have used imaginary bot names in the below example.) SetEnvIfNoCase User-Agent .*abcbot.* bad_bot SetEnvIfNoCase User-Agent ....
user avatar
  • 2,233
1 vote
1 answer
49 views

Can I use the .htaccess file or another solution to address www and non-www duplicate content issues?

Ahrefs is returning a series of duplicate content URLs for my own website i've asked them about and which they've said needs to be addressed on the CMS side, and which they cannot help with. The ...
user avatar
  • 37
3 votes
1 answer
187 views

Redirect URL ending in certain `variable=value` query string, to `URL?variable` (i.e., strip `=value`)

I'm trying to create a 301-rewrite for URLs ending with ?amp=1 to nearly the same URL and query string, just stripping the value (=1). Examples: https://example.com/?amp=1 should redirect to https://...
user avatar
1 vote
1 answer
108 views

How can I run commands in my system using a website running on my local server?

I set up an Apache server on my system. I want to run commands and files using the website running on my local system. How do I trigger a file running using browser? What i want to do: I have a file ...
user avatar
1 vote
2 answers
310 views

How to remove all .html extensions from all pages of site running under Apache?

On a shared hosting environment based on CentOS-Bash, Apache (with Nginx as a "reverse proxy"), PHP and MySQL I host a MediaWiki website. Normally, no webpage has a .html extension. I have ...
user avatar
3 votes
1 answer
95 views

IIS rewrite rules for SEO friendly URLs don't work in .htaccess for Apache

I'm using a Pi 3 for the Apache server but I can't figure out how to setup .htaccess. Previously I used IIS with which it is easy to implement SEO-friendly URLs. Linux .htaccess is very different and ...
user avatar
1 vote
0 answers
60 views

SEO - Google select a another domain at canonical url

I have a problem with my domain for selected canonical url by google. I have a vps for my website with apache. I created a redirect for website ip, but some domains have my ip in DNS and redirect to ...
user avatar
1 vote
1 answer
236 views

How do I make my home web server public when port 80 is forwarded with my CenturyLink router?

I have the latest version of Apache Lounge, and I want to make it accessible to the other people. My Website IP is 192.168.0.61, and in httpd.conf these are the settings I added Listen 192.168.0.61:80 ...
user avatar
1 vote
0 answers
54 views

What can be a reason of a "The requested URL / was not found on this server" error in case of an addon domain? [closed]

Let's say I have a site hosted on a.example.com. I'm adding an addon domain to the server (shared hosting): b.example.com and point this domain to the server IP address. Visiting b.example.com ...
user avatar
  • 498
2 votes
0 answers
144 views

Prevent search engines from crawling and indexing all domains and subdomains set up under an Apache server

My company is renting a CentOS server, with one main domain and ~30 subdomains (the number varies, but it's usually around 30) hosted on it. The subdomains themselves are used for various purposes (...
user avatar
2 votes
1 answer
2k views

Redirect from index.html to its directory using .htaccess?

For each page of my website, it is named index.html and stored inside a folder of the name of the page. example.com/ serves example.com/index.html example.com/about/ serves example.com/about/index....
user avatar
1 vote
1 answer
34 views

Subdomain rewrites without using certs that don't support sub domain affecting

I am using LetsEncrypt to generate and renew my certs for my website. Unfortunately, it does not support subdomains. Having said that, I have a ton of rewrite rules that work fine. For example: ...
user avatar
1 vote
1 answer
74 views

Htaccess - replacing a query string with a numeric value

I don't know why but this htaccess item doesn't work for me. I have something like this after update user profile public/user_profile/show_user.html?id=4 and I want to have public/user_profile/...
user avatar

1
2 3 4 5
23