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.

learn more… | top users | synonyms (1)

2
votes
2answers
898 views

How to hide awstats url parameters

currently in order to access statistics on my site I access this link: www.example.com/awstats/awstats.pl?config=awstatsconffile.org all is working fine, but what I want to achieve is simply this: ...
2
votes
1answer
40 views

Speed of prefork+ruid2 with more connections on limited memory

Currently I am using Apache in a server with WHM/Cpanel and I'm currently using Prefork MPM with Mod Ruid2 to process PHP pages. While the setup allows it to run very fast, I'm limited to processing ...
1
vote
1answer
15 views

how to display directory structure in public_html?

I just set up apache and was able to get a site running. I want to use user directories in /home/*/public_html to display some data so a collaborator can download stuff I put on the user directory. I ...
1
vote
1answer
17 views

Redirecting all traffic to a script

I am on Centos 6.5 with Apache2 and Perl 5.23. I need to pass all traffic to the single perl script, check this request in a database, and show needed content (have both static and dynamic content). ...
8
votes
5answers
5k views

Forcing SSL and www in .htaccess

I'm looking for a way to force SSL and www. I've been able to force both separately but together I keep running into redirection issues. The following code works when handling a URL in this format: ...
2
votes
1answer
23 views

Soft 404 problem with nginx frontend to apache2 modperl backend

Using nginx as a frontend to our modperl apache2 servers. We have a soft 404 problem at Google Search Console. The problem is that we have many pages expiring all the time, once they expire we add a ...
2
votes
1answer
33 views

phpMyAdmin can't find tmp directory

I have a site hosted with BlueHost. I need to upload a rather large SQL file to the tmp directory so I can run an import. However, phpMyAdmin is giving me the following error: The directory you ...
1
vote
1answer
31 views

.htaccess redirect without changing url in users' address bar

My website redirects to /temp when visiting the root, I'd like it to appear as the root, without the /temp in the URL address bar. I have a simple .htaccess: Options +FollowSymlinks RewriteEngine On ...
2
votes
1answer
479 views

Apache htaccess - modify query string with mod_rewrite

I've recently changed scripting on my website, and this has resulted in a few 404 errors as some very old queries are no longer being redirected correctly. I've been trying to create a rewrite rule ...
2
votes
2answers
115 views

Parse Python script on Apache virtual host

I have an up and running Apache server working with PHP on a Centos 6 server. Apache was installed using yum -y install httpd mod_ssl. I now wish to add Python. I installed Python as follows: wget ...
1
vote
1answer
33 views

Why does Apache parse .htaccess if accessed through the main page and not through a VirtualHost?

I have two websites. One is hosted on /var/www (www.example.com) and the other is /var/www/test (test.example.com). The second is a VirtualHost. I wrote a .htaccess (I'm using it to mod_rewrite), put ...
1
vote
1answer
15 views

Best practice for temp directory used by MediaWiki?

This question appears to be related to File system permission for MediaWiki uploads? Tightening permissions has lead to "Error creating thumbnail" messages: MediaWiki has a page on the temp ...
0
votes
1answer
55 views

Brand new domain and server using URL Rewrite flagged by Google for Phishing

I set up a VM with 1and1.com and registered a domain. I'm running an app (Jira) that runs on its own Tomcat instance but I have set up URL Rewriting based on this article so that IIS can handle the ...
0
votes
1answer
198 views

Subdomain redirect to WWW

I have the domain example.com and the test.example.com running on apache server. For some reason when I try to visit test.example it is redirected to www.test.example and by consequence a Server not ...
2
votes
1answer
53 views

Trying to unload unnecessary modules from apache but don't know which

I have apache 2.2 with whm/cpanel installed on my server. When I look at the loaded modules list, I see: core_module (static) authn_file_module (static) authn_default_module (static) ...
5
votes
2answers
112 views

File system permission for MediaWiki?

We are an open source project and we have an Apache web server with a MediaWiki 1.25. Its a stand alone installation, so we don't have the complications of shared hosting a varying userids. After 20 ...
3
votes
1answer
23 views

Add an exception to Joomla's .htaccess rewrite rules to allow an Owncloud subdirectory

i'm actually use Joomla in our website and i would like to add Owncloud. The .htaccess in the root let Joomla side works without trouble: RewriteEngine On RewriteCond %{REQUEST_URI} !^/Joomla3 ...
0
votes
1answer
18 views

Can multiple websites/domains be hosted by the same Platform as a Service [PAAS]?

Sorry if this is trivial, but I am still learning the basics of PAAS, so I appreciate your patience... Can separate websites both be hosted by a single PAAS (used via single account with a given ...
1
vote
1answer
10 views

Understanding the apache Timeout value

I'm trying to understand the timeout value in apache since I want to make my server run very fast. On my local server, I tried using an apache timeout of 5 seconds. I then attempted to execute the ...
1
vote
1answer
99 views

How can you use Apache .htaccess to specify the location of the PHP binary on shared hosting?

I'm using shared hosting, can create .htaccess and php.ini and have access to ssh. I have PHP 5.6 installed to ~/public_html/php56 and can use this path with ssh, cron and exec() but not on the web. ...
1
vote
1answer
112 views

I'm only able to reach my site using www, but not non-www

I had a website at example.com. I created another website (example.hotelrunner.com) using HotelRunner and changed domains. I did that by changing the A records and CNAME at Netfirms. Now example.com ...
1
vote
1answer
40 views

mod_rewrite cause errors in apache error.log

In Opencart I have enabled SEO URLS, which is working fine, unless that I see errors in apache log: [Thu Apr 16 22:53:38 2015] [error] [client xy] File does not exist: /home/html/xy.eu/public_html/...
2
votes
1answer
28 views

Vhost sends www.* to another domain

I created a virtual host at my server to host multiple sites, but I got a few unexpected problems. One sites doesn't gets recognized by the server and is redirected to another domain on the server, ...
1
vote
1answer
32 views

Why would a url of example.com/n (where n is the same number repeated 500x) return a 403 error?

I'm trying to add new functionality to my site which involves passing a whole bunch of parameters (could be hundreds of parameters) all encoded in base64 format. When I attempt the new URL I get an ...
0
votes
1answer
71 views

Moving subdomain to a different hosting provider

Currently my subdomain is hosted within same webhotel as my main domain. I would like to change it to point another domain (website on Windows Azure). Subdomain should be accessible all the time ...
3
votes
2answers
61 views

Redirecting specific URL from HTTPS to HTTP

Long time lurker, first time caller... I have a backend like admin.mysite.com which is able to use HTTPS (has a certificate installed, etc) - but that admin portal is a CMS backend for a number of ...
3
votes
1answer
33 views

Can I set memory limits on cpanel acounts

I have one account on my vps that is hogging more than it's fair share of memory. How can I limit that account's memory usage? Setting memory_limit in the php.ini? It appears as if this sets the ...
2
votes
1answer
31 views

My users are getting 302 Found page if they don't write https in address bar, how can I prevent this?

I host a forum website in DigitalOcean's cloud servers, using Ubuntu 16.04, Apache 2.4.20, PHP 7.0.8 and MySQL 5.7.12. I tried to troubleshoot with cURL about what is the problem, these are the ...
0
votes
0answers
29 views

Gzip compression not working

I have enabled mod_rewrite, mod_deflate, mod_headers and mod_setenvif in Apache and not mod_gzip, mod_filter. Tried <IfModule mod_deflate.c> # Compress HTML, CSS, JavaScript, Text, XML and ...
1
vote
1answer
595 views

Where/how to put .htaccess files?

I am trying to update/create a .htaccess file for my apache2 server so that my webpages can be accessed without file extensions (e.g. www.example.com/whatis.php can now be accessed as www.example.com/...
0
votes
1answer
18 views

Would changing the expiry header for `analytics.js` from Google Analytics mess things up?

I'm using GTMetrix to help figure ways to speed up my page load times. One of the suggestions is to Leverage Browser Caching, which indicates wanting resources to expire 1 week or longer. One of the ...
1
vote
2answers
78 views

Granting a developer cPanel access but disabling downloads

I need to hire a dev to do some work on my site, however as it is a very large one and valueable at the same time, i don't want to risk a dev stealing the work and mechanisms behind it. I will need ...
0
votes
0answers
11 views

debian 8 apache 2.4 SNI

I've installed Apache 2.4 on Debian 8. And I have two virtual hosts. When I load either of the sites then only one loads. I've had SNI configured and working with Apache 2.2 and haven't had any issue ...
1
vote
1answer
22 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 ...
1
vote
1answer
476 views

htaccess sitemap.xml rewrite to /sitemaps/$_SERVER[“MYVAR”]/sitemap.xml

I am trying to update htaccess to write as following: htaccess sitemap.xml rewrite to /sitemaps/$_SERVER["MYVAR"]/sitemap.xml This rewrite should only occur if sitemap.xml is requested in root (...
1
vote
1answer
26 views

Can a later DocumentRoot directive override an earlier DocumentRoot directive?

Because I use cPanel, the WHM developers are trying to restrict my subdomain creation to any folder within my user account of /home/username. In order to improve processing speed, I created a ram ...
3
votes
4answers
4k views

Enable gzip compression on Bluehost?

My website is loading large (~3mb) SVG file with jQuery. It takes quite a while therefore I decided to enable gzip compression. I have a hosting account with Bluehost which supports custom .htaccess ...
0
votes
0answers
16 views

Appserv Windows Instalation Error! Blank Screen

I've been running Appserv for a number of years with little problems, but after installing Windows 10, and a recent automatic update my localhost just shows a blank screen. After trying many "...
1
vote
1answer
18 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 ...
13
votes
5answers
38k views

How to Change the www root directory on WampServer

How can i change the root directory of the currently installed wampserver to some other directory.
3
votes
2answers
23 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 ...
0
votes
1answer
20 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....
4
votes
2answers
417 views

Is it safe to give write permission to _www user account?

I want to use PHP to modify some of my files, but can someone else use this account to modify my files without my acknowledgment?
3
votes
1answer
32 views

Can Apache serve resources recursively if there's a 404 in the current directory?

Is there a possibility to serve resources hosted with Apache recursively across the directory hierarchy, using mod_rewrite or the like? Example#1: A server document css/php/html/... refers to the ...
0
votes
2answers
5k views

Amazon EC2: How do I create a subdomain on an instance?

I have apache2 and tomcat installed on Amazon ec2 instance running Ubuntu. tomcat is serving the application and I want to create subdomains for example.com and abc.example.com to serve to different ...
2
votes
1answer
27 views

Redirect ALL requests to host IP

I have a honeypot running on AP so if anyone connects and try's to browse it will redirect to the root page. I am using dnsmasq to do this with the following entry log-facility=/var/log/dnsmasq.log ...
0
votes
1answer
36 views

Request for an existing file causes 404 error

A customer cannot access a file that I put online for him, or the folder that it is in. Requests for both the folder (/bastide) and the file (/bastide/coupon%20d'engagement.pdf) return 404 errors. I ...
0
votes
0answers
37 views

Can't deploy web pages on AMPPS

I have few web pages on my computer (firstpage.html, secondpage.html). So after I have installed ampps, I moved them to htdocs folder, then write localhost/firstpage.html on browser. Browser tells: ...
3
votes
1answer
28 views

How to modify httpd.conf to add one more site in apache 2.4.6

How to modify httpd.conf to add one more site in apache 2.4.6? Here is my httpd.conf ServerRoot "/etc/httpd" Include conf.modules.d/*.conf Listen 80 User apache Group apache ServerAdmin root@...
2
votes
1answer
205 views

mod_proxy(_html) and a buggy Webserver (delivers text/html for JSON data)

We've got a Webserver that answers to AJAX requests by sending JSON Data to the client. Problem is that the JSON Data has the content-type "text/html" instead of "application/json" (it's an Oracle ...