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.
1
vote
1answer
23 views
ErrorDocument Not Working
I've been trying to solve this problem, I have a virtual machine with the same setup as my production server. The ErrorDocument line in 000-default.conf works on my VM, however it doesn't work on my ...
4
votes
1answer
33 views
Apache ErrorDocument based on folder
I'm using XAMPP with Apache 2.4.18.
My client have 3 divisions of their work (they do 3 different things so they have 3 divisions inside of the website).
So the URL is like this: clientName.domain/...
4
votes
2answers
32 views
Is the context for the Apache2 Options command varying depending on the flags used?
As I was testing various things to make sure my Apache installation was as secure as possible, I decided check whether I would see a directory list of files. So I created a test directory and added a ...
1
vote
1answer
18 views
CSP3 Report-To header implementation
Issue
Many CSP validators like cspvalidator.org tell me that:
A draft of the next version of CSP deprecates report-uri in favour of
a new report-to directive.
I found more information about ...
1
vote
0answers
61 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
30 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 ...
2
votes
1answer
41 views
Enabling 000-default.conf breaks namebased vhost
I have two sites on a server: dev.somedomain.com and somedomain.com - the latter has a ServerAlias of *.somedomain.com. All domains are SSL-enabled, and all requests to port 80 is redirected to https. ...
3
votes
0answers
28 views
refreshing the local server ip not refreshing the newly enabled site [closed]
I have changed the DocumentRoot from /var/www/pydio/pydio-core-6.2.2 to /var/www/php/cloud and updated the /etc/apache2/sites-available/cloud.conf as below
php directory contains cloud directory ...
3
votes
1answer
39 views
Using mod_rewrite to access httpOnly cookie?
I have Apache running as a secure proxy (Port 443) between an HTTPS site and the rest of the world. This site is setting a secure, httpOnly cookie. The cookie when seen in a trace shows up in a ...
0
votes
0answers
26 views
Can Access Apache2 website from Chrome but Not Safari
I have my website setup correctly, as far as I can tell; here is a dump of conf files:
sites-enabled
<VirtualHost *:80>
ServerName example.com
ServerAdmin [email protected]
...
2
votes
1answer
54 views
How do I get a Flask Application to run on a Subpage?
I have a flask app running on port 5000 but that port is blocked on my server and I can't unblock it. Ideally I'd like to just run the app on www.mywebsite.com/flaskapp, is this possible by just ...
4
votes
1answer
58 views
Trying to install web2py on a shared server (Dreamhost)
I've been trying to install web2py on a subdomain on my shared account at Dreamhost. There used to be some info in their knowledge base, but it has been removed for outdated. I've found lots of ...
4
votes
1answer
42 views
Why does apache redirect to www without RewriteRule
So I have a webserver running on Apache, with a few virtual hosts. I want to default to https and hence I have a rewrite rule.
<VirtualHost *:80>
ServerName example.com
...
1
vote
1answer
30 views
Redirect 301 to a folder on the server?
I wish to 301 redirect my conf file located at /etc/apache2/sites-available to a different folder on the server itself. But when I added:
Redirect 301 / /var/www/web/public_html
to the conf file and ...
0
votes
0answers
144 views
Setting X-Forwarded-Proto under Apache 2.4
Ive been advised that I need to set the RequestHeader X-Forwarded-Proto for a node.js application (NodeBB) to resolve an issue with sessions / csrf tokens.
Here's the relevant excerpt from my ...
1
vote
0answers
45 views
How to pass requested domain to server when behind a CDN
I have a bit of a problem getting our server to know what domain was requested to get to the server.
The scenario is like this.
site1.com, site2.com, site3.com and site4.com are all pointing to ...
0
votes
0answers
37 views
virtualmin: how to set ftp user's root directory?
Under virtualmin's "edit users" panel, I set a new FTP user with the home directory being website subdirectory: medias\. When I login to this user, the landing directory is medias\, however this user ...
0
votes
2answers
61 views
Why my site can run without .htaccess
I build my site with Joomla and host with Linode.
I was trying to understand .htaccess file. I learned some directives and added them on my htaccess.txt file but things weren't going as I expected. ...
1
vote
1answer
17 views
Query value with chevrons sends 302 to /
When a special query value is typed in the URL, apache sends back a 302 redirect to root url (/).
We're using CPanel and we owns the server. The apache virtualhost file wasn't touched and is managed ...
1
vote
1answer
73 views
haproxy + Apache + virtual hosts -> wrong host is displayed
On CentOS 7.2.1511 Linux I have installed
haproxy-1.5.14-3.el7.x86_64 and
httpd-2.4.6-40.el7.centos.1.x86_64 packages.
The /etc/haproxy/haproxy.cfg binds HAProxy to
ports 80 and 443 and accepts HTTPS ...
2
votes
2answers
47 views
301 redirect with Apache: All paths of URL to a single path
I am migrating a website from one platform to another, and in that process, I'm getting rid of the old domain name.
There is no direct relation between the paths on the old and new website, and ...
1
vote
1answer
66 views
Cannot find a file on localhost. 404 Not Found [closed]
danko@danko-VirtualBox ~ $ sudo service apache2 status
* apache2 is running
danko@danko-VirtualBox ~ $ php --version
PHP 5.5.9-1ubuntu4.17 (cli) (built: May 19 2016 19:05:57)
Copyright (c) 1997-2014 ...
1
vote
1answer
48 views
If I hide files in my web servers directory root, can users find them anyway?
More specifically, how can I theoretically find the files that is in a website's root directory?
For example:
My current imaginary website has 2 folders (labeled rescources and screenies) and 3 ...
0
votes
1answer
36 views
Specify or omit IP addresses for Apache virtual hosts?
I have a few virtual machines with apache 2.4 installed, and the base setup made by the hosting provider. They specify the IP address in every virtual host configuration:
<VirtualHost 123.234.56....
3
votes
2answers
24 views
Configuration-time variables in apache configuration files
I have several virtual host configurations which are stored in files on their own and differ mostly in properties like DocumentRoot, logfile names, ports (for a RewriteRule) and the like.
Sometimes ...
4
votes
1answer
52 views
apache virtual hosts on LAN
i have 3 domains pointed at my linux box, apache2 virtual hosts is set up so that each domain loads the appropriate webpage when you visit it outside of the LAN.
my trouble is trying to view the ...
1
vote
0answers
30 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 ...
2
votes
1answer
33 views
Apache 2 mod_rewrite Inconsistent Results
My former university, SPSU, was "consolidated" into Kennesaw State University. I used to have the domain bbrown.spsu.edu. As a temporary fix, bbrown.kennesaw.edu was set up by University IT. ...
0
votes
0answers
26 views
Server's IP address is masked but doesn't show paths
I'm new to server administration. I made a website and rent a domain from Godaddy. I set forwarding with IP masking. When I go to my website, it shows that domain name, but doesn't show the file path, ...
2
votes
2answers
682 views
Apache reverse proxy changing Content-Type
Update 3:
I've experimented a bit with setting ContentType for all css files to different types like text/plain, text/html and text/css in the .htaccess file of the webserver hosting Owncloud and ...
4
votes
3answers
289 views
Which is more SEO friendly, redirect or rewrite?
On Apache 2.4, which is better for multiple migrated URLs in terms of SEO, 301 redirect or rewrite?
I have ~50 URLs.
3
votes
1answer
63 views
Getting MAMP Pro Apache to Listen on Multiple TCP Ports
I'm running MAMP Pro (Currently 3.5).
I would like to be able to run Apache's standard (non-SSL) TCP on multiple ports (80 and 8080) for testing.
It doesn't seem to let me do this. Adding a new TCP ...
1
vote
1answer
31 views
Apache .conf files not working. Apache restarts even without ANY conf files
For some reason, my apache instances have stopped updating their conf files. I am able to reboot apache without any errors logged and apache will not recognize any changes.
I have gone so far as to ...
3
votes
3answers
239 views
Redirect $.html to $/ mod_rewrite rule clash
I have already remapped URL's from for example /sub/test/ to test.html but I also want to redirect /sub/test.html to /sub/test/ but here seems to be a clash between the rules.
.htaccess files is in ...
3
votes
1answer
142 views
.htaccess mod rewrite sub directories redirect loop
I am trying to setup a sub-directory with individual .htaccess. I want to redirect .html files to url without extensions and also add a trailing slash and redirect all non-slashed urls there.
Here's ...
4
votes
1answer
586 views
Possible to split virtual host definitions into multiple apache conf files?
I have a single server that I use to host a whole bunch of smallish websites. It's recently come to my attention that a service called LetsEncrypt allows me to get an SSL certificate for free. The ...
1
vote
1answer
87 views
Rewrite rules in .htaccess never take effect and no redirects ever happen
I recently set up a vps with digital ocean to let my site run on php7 and http2
Everything is running great but my sites .htaccess file is not redirecting as it should. I have changed up my 000-...
3
votes
0answers
73 views
Reverse proxy apache not working [closed]
I have my subdomain pointing to my server IP.
I have enabled
sudo a2enmod proxy
sudo a2enmod proxy_http
sudo a2enmod proxy_wstunnel
Here is my virtualhost.conf file contents:
ProxyRequests off
&...
0
votes
0answers
112 views
Can't load the MediaWiki Skin after setting up Short URL
Problem
I set up the Short URL function for my MediaWiki installation.
After I done this my wiki can't load the MediaWiki design.
How can I set my MediaWiki settings correctly to load my skins ...
1
vote
0answers
52 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
2answers
295 views
How to create Short URL in Mediawiki without getting an 403 Forbidden Error in Apache?
How to create Short URL in Mediawiki without getting an 403 Forbidden Error in Apache?
My httpd.conf:
#### Wikibase (BETA)
<VirtualHost *>
ServerName wikibase.isc
ServerAlias ...
4
votes
2answers
63 views
Will using Google's PageSpeed module help to speed up a site with Magento?
I'm considering installing Google's PageSpeed module on a Debian Linux / Apache 2.4 web server to speed up a Magento CE website. Will using Google's PageSpeed module help to speed up a website using ...
3
votes
1answer
946 views
debian phpmyadmin - Call to undefined function __()
I recently upgraded my debian installation from wheezy to jessie. Now I get only blank pages when accessing phpmyadmin.
The apache log says:
Fatal error: Call to undefined function __() in /usr/...
0
votes
1answer
26 views
Possible to make virtual servers on hosted web server? [closed]
I own a debian root web server at an ISP. By own I mean, I rent the server with a package, I do not own the hardware and such. No plesk or anything else. All configuration is done by hand (well, a ...
0
votes
0answers
5 views
Excluding a file from an IP block [duplicate]
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
87 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 ...
1
vote
0answers
13 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
1answer
29 views
How to run perl scripts on server? (apache2)
when i visit http://example.asd/asd.pl it just asks me if I want to download the script.
I have perl module installed in my httpd.conf and I have
LoadModule perl_module modules/mod_perl.so
How can ...
2
votes
2answers
89 views
How to change whole folder from http to https
The checkout/onepage is working with HTTPS. But, why checkout/cart is not?
Here is fragment of the .htaccess:
############################################
## enable rewrites
Options +FollowSymLinks
...
1
vote
3answers
52 views
Regular expression for Apache redirection
In the .htaccess file I would like to redirect (301):
From: http://www.example.com/photo<anything>
To: http://www.example.com/blog/
Basically, any URL starting with /photo should be redirected ...