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.

39 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
313 views

Ubuntu 14.04 can't enable .htaccess

I'm developing a website local and just switched from Windows to Ubuntu 16.04 - Sadly my .htaccess doesn't seems to work since rewrite rules don't apply and sources can't be found. I activated: sudo ...
3
votes
0answers
419 views

Running Nodejs application and wordpress in same server

I am using one EC2 instance of AWS, I have two domains which I will connect with ec2 elastic ip but one domain will have wordpress running on it and other will have nodejs application running on it. ...
2
votes
0answers
29 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 ^(.*)$ /...
2
votes
0answers
136 views

How to hyperlink to file stored on local intranet via Windows share (SMB)?

We're deploying OSticket (uses Apache 2.4 & PHP-7.0-fpm) and want to hyperlink to network shared files (eg \\servername\foo) But this proves to be very difficult as this file is not in the webroot ...
2
votes
0answers
304 views

Specify the order and priority of LocationMatch directives from different Apache conf files

I have custom modules loaded in Apache HTTP Server that handles different URL's i.e each module handles a specific URL depending upon the LocationMatch directive defined in each of these modules. The ...
2
votes
0answers
488 views

How to proper configurate mod_proxy_uwsgi

I got uwsgi running behind nginx. All is working fine, but I want to change from nginx to Apache2 with mod_proxy_uwsgi. I cannot get a connection (access and error.log of appache are blank) My uwsgi....
2
votes
0answers
79 views

How to host 2 webapps on the same server

I'm working on a VPS with Ubuntu and I configured a webapp called Pathfinder, it's a third party app for a game called EVE Online. Now I need to add another app to the server but I don't want to mix ...
2
votes
0answers
85 views

Usurance quoting system fails with error “No such file or directory: exec of /usr/lib/cgi-bin/cqsl.cgi”

I purchased a quoting engine but I am having a problem with the installation. I've followed instructions in the readme.html file (http://usurance.biz/readme.html), but I am getting an "Internal Error"....
2
votes
0answers
143 views

RequireAll blocks overriding each other

I have recently converted a pre-2.4 configuration to Apache's new authorisation configuration but ran into a problem/misunderstanding concerning more than one RequireAll block. What I am basically ...
2
votes
0answers
112 views

Apache mod_pagespeed ignores redirected pages

Using mod_pagespeed (https://developers.google.com/speed/pagespeed/module) with an Apache Server, I noticed that some pages were not being processed. The pages in question all had one similar ...
2
votes
0answers
738 views

How can I set a secure flag on cookies generated from a Python application?

I have an application written in Python running behind Apache and SSL. I am not seeing a secure flag on my cookie: apache Server version: Apache/2.2.15 (Unix) I have added a configuration line to my ...
2
votes
0answers
907 views

404 error on a file/directory that exists?

We are using the vBulletin system. I have set it up so that it redirects 404 errors to a PHP page, so it follows the theme of the forum. However, if I go to a directory that exists (the admin ...
1
vote
1answer
22 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
22 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 ...
1
vote
0answers
23 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. ...
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 ...
1
vote
0answers
43 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
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
273 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
0answers
235 views

Set default file and folder permission for new files and folders - apache , ubuntu

I checked the file and folder permission of /var/www/html/ using stat -c '%A %a %n' * Folders : 775 Files: 664 drwxrwxr-x 775 includes -rw-rw-r-- 664 index.php -rw-rw-r-- 664 maintenance.html ...
1
vote
1answer
908 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
0answers
2k views

Apache 2.4 on Windows Server 2012 R2 - Error 1053

I have installed Apache 2.4 on a Windows Server 2012 R2. It starts fine from the command line, and I can view test pages and what not. I then used the command httpd.exe -k install to set it up as a ...
1
vote
0answers
149 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
0answers
342 views

Is it able to disable secure attribute for Cookie on SSL connection?

There are HTTP and HTTPS page on our site on Apache. So We need to convert from HTTPS to HTTP or from HTTP to HTTPS to prevent from login session cookie fired. I already know that it does not make ...
1
vote
0answers
122 views

Rstudio Apache2 reverse proxy sends me back to index.php after sign-in

I'm trying to set up an Apache2 reverse proxy to access another machine at home. I've got the Apache 000-default.conf set up as follows: <VirtualHost *:80 *:443> ProxyPreserveHost On # Servers ...
1
vote
0answers
26 views

set any subdomain for a given domain in apache in IOS

I am working in localhost, I've created a domain like this in /etc/hosts 127.0.0.1 *.example.com in /etc/apache2/extra/httpd-vhosts.conf <VirtualHost *:80> ServerName *.example.local ...
1
vote
0answers
584 views

Document root owner and privileges, Apache web server

I am configuring a website for public use. The document root is currently /var/www/html and the owner/group is root/root. So, I'm guessing that it would be best or at least better to change the ...
1
vote
0answers
36 views

Using mod_rewrite to force users to use our caching proxy

During a recent audit we became aware of several users who have not set their DNS records to correctly point to our name servers. Since we don't control the domain names of our users directly, we're ...
1
vote
0answers
486 views

Index file not loading automatically for Alias in Virtual Host

I have the following virtual host setup: RailsBaseURI / <VirtualHost *:80> ServerName mydomain DocumentRoot /usr/share/redmine/public Alias /evaluation /home/user/evaluation/ ...
1
vote
0answers
161 views

Apache, Rewrite Rule and Directories

I'm using the current virtual host: <VirtualHost *:80> ServerAdmin webmaster@mysite ServerName example.co.uk ServerAlias www.example.co.uk DocumentRoot /home/example.co.uk/...
0
votes
0answers
10 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
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
23 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 ...
0
votes
0answers
82 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 ...
0
votes
0answers
14 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
0answers
1k views

Running test Python script under Apache 2.4 gives error “end of script output before headers”

I am trying to get a simple web service running on my local computer. In my cgi-bin directory in the Apache24 folder I added an empty file called pywps.cgi with the following content #!C:\ProgramData\...
0
votes
0answers
26 views

Unable to add new host to Apache webserver

I already have two hosts pointing to my machine, and I am trying to add a third "webmail.user.domain.com, but I receive DNS failure lookup. I created a configuration file for "webmail" with the same ...
0
votes
0answers
82 views

Logging what was in the content of a page

I'm one of the people working on a Java based website that has the apache httpd in front of it. The content on the pages is migrating towards personalizing the content and as such just about every ...
-1
votes
2answers
130 views

Apache2 subdomain to domain [SSL]

I have domain with SSL and 4 subdomains like: ftp.example.com, server.example.com etc. I'm trying to redirect from subdomain to domain. Example: if someone goes to https://server.example.com they will ...