Questions tagged [apache2]

The Apache HTTPd Server. When asking questions about virtualhosts, please include the output of the following command: "apache2ctl -S" (or "httpd -S" depending on your OS)

The Apache HTTP Server is a popular Open Source Web server. This tag should be used for general questions about Apache HTTPd.

Although there is large degree of commonality between the different versions in the 2.x branches, please consider using the Apache-2.2 or Apache-2.4 tags instead for more specific Apache HTTP Server related questions.

Documentation for all major versions is both comprehensive and has a high degree of accuracy.


1741 questions
3
votes
1 answer

AddHandler for PHP with different file extension

I'm trying to configure a hosted Apache server, via .htaccess, to execute files with .asp extension with PHP. But I don't know what the correct handler-name for AddHandler is. The reason is that we have a flash app that is GET requesting .asp files.…
dotnetCarpenter
  • 133
  • 1
  • 5
3
votes
0 answers

Is it possible to proxy\tunnle TCP through Apache HTTP web server?

A customer uses Apache HTTP Webserver (AW) to redirect HTTP requests to Apache Tomcat (AT). I need to add a special servlet to a current application being served by AT. This servlet will just start a thread and do nothing more. This thread's sole…
Muhammad Gelbana
  • 217
  • 4
  • 11
3
votes
3 answers

IP address redirects to www.IP address

I have a Google Cloud Compute instance running a Bitnami Magento stack. For some strange reason if I try to browse to the site via the IP address it prefixes the IP address with www. so fails. The site domain name is fine. This is relevant because…
3
votes
2 answers

SSL_ERROR_RX_RECORD_TOO_LONG after installing Certbot on Apache2

I'm trying to set up a web server on a raspberry pi, it's running a debian based system. I installed and set up apache (following this guide), set up port forwaring on my router and created 3 html only websites to test things. Since I only have one…
Simone
  • 31
  • 2
3
votes
2 answers

seo friendly url not working

I have a folder structure like the below www.exampe.com/distributor/index.php and I want to access the file via an seo friendly www.example.com/distributer/abcinc and then in the index.php want to get the value of the last segment in this case…
Jayreis
  • 145
  • 15
3
votes
2 answers

Apache Options -Indexes for sub directories

Per How can I prevent people from looking at a listing of files in parent directory if I haven't uploaded index.html? I can see how to disable listing of files if there is no index.* file. How can i allow file listing for the root directory, but not…
morleyc
  • 1,150
  • 13
  • 47
  • 89
3
votes
0 answers

Nginx converts POST Request to GET request while proxy_pass

I am having 3 Server: A, B, C. Details are: Server A: NGINX Server, URL: https://test1.example.com Server B: NGINX Server hosting NodeJS Web Application, URL: http://test2.example.com Server C: Apache2 Server hosting Django Web Application, URL:…
3
votes
1 answer

Large file download from self hosted website

Sorry if the question is simple, I am new to web development and self-hosted servers. We have a self hosted website, which is supposed to have a button to download a large zip file (1 GB). For this, we have a simple solution in the index.html…
3
votes
0 answers

How to give OpenVPN profile files to users via the HTTPS?

I'm using Mikrotik Router as an OpenVPN server and I want to give the profile file to the users with HTTPS URL so they can import the file using URL in OpenVPN application on Android or IOS phones. But I have this message when I'm trying to import a…
3
votes
0 answers

Apache2 Let's Encrypt 404 for .well-known/acme-challenge

I am trying to issue a Lts encrypt ssl on my Apache2 AWS ECS. I confirmed the www and non www versions of the domain are all pointed correctly to the server however I receive an error that I am not sure how to fix. Type: unauthorized Detail:…
Jayreis
  • 145
  • 15
3
votes
1 answer

Using IfDefine with environment variables

I am trying to make my configuration as flexible and easy-to-configure as possible by using a list of variables in /etc/sysconfig and loading the environment variables when Apache is started using a systemd drop-in configuration file. Since the…
user48147
  • 203
  • 2
  • 7
3
votes
1 answer

Is there a way to share or reuse Apache configurations

I have the following directory structure on my Apache server /var/www/domain.com/ index.html site-1/ site-2/ . . . site-N/ Each site uses the following configuration file, where the variables "port", "site", and "hub"…
Mark Davich
  • 133
  • 5
3
votes
2 answers

How to pass secret in rewriterule to AJP protocol

I have a Apache server running 2.4.6, Tomcat 8.5.33 running lucee. We have rewrite rules that proxy to AJP on port 8009. ProxyPassReverse / ajp://localhost:8009/ timeout=3600 RewriteEngine On # Rewrite sitemap RewriteRule ^/sitemap\.txt$…
2
votes
1 answer

How to "convert" htaccess rules into nginx rule?

I would like to "convert" this rules into an nginx rule. I think the location block is the right place, but my solutions doesn't work. Options -Indexes RewriteEngine On RewriteCond %{DOCUMENT_ROOT}/public%{REQUEST_URI} -f RewriteRule ^(.*)$…
sareew
  • 23
  • 2
2
votes
3 answers

Apache 2 handling requests very slow after Restart

We have a GPS device socket handling server using NodeJS which sends the received HTTPS request to Apache installed server and saving the data into MySQL Database. When we restart NodeJS or Apache installed server, Request Handling rate of the…
jAddict
  • 23
  • 8