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)

1
vote
0answers
32 views

web maliciousness via Twitter? [closed]

My Apache logs suddenly show huge numbers of downloads (downloading the same things over and over) from IPs that trace to Twitter -- 199.59 & 199.16. What does that mean? Can you actually download ...
0
votes
1answer
80 views

Filtering content from response body HTML (mod_security or other WAFs)

We have Apache on Linux with mod_security as the Web App Firewall (WAF) layer. To prevent content injections, we have some rules that basically disable a page containing some text patterns from ...
0
votes
2answers
52 views

How to add a remote file to .htaccess file for webcaching?

I have the following code in my .htaccess file that caches several file extension types: ## EXPIRES CACHING ## <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpg "access 1 year" ...
0
votes
0answers
93 views

Apache VirtualHost Subdomain redirects to IP

I have one VM (LAMP) with a static IP. There are two Subdomains configured on this Machine. If i browse one of the subdomains, it executes the files specified in its DocumentRoot. The problem here is ...
2
votes
1answer
115 views

Simplest way to lock down a beta web site but allow paypal payments

Perhaps a strange question, but I have a website that's not ready for production use online in order to test paypal payments. I had locked down the site using a .htaccess file however this also ...
2
votes
1answer
57 views

Mapping a domain to my virtual server using an A record

I bought a virtual server from Hetzner. It has Debian 7.0 minimal installed, and I also installed Apache server using apt-get install apache2. That's about everything I did on the server. This URL ...
2
votes
2answers
93 views

Remove IP address from the URL of website using apache

I'm on an EC2 instance and have a domain domain.com linked to the EC2 nameservers and it happily is serving my pages if I type domain.com in the URL. However when the page is served it resolves the ...
1
vote
1answer
50 views

Reasons for putting an application platform behind a web server

Application platforms like Node.js and Tomcat can bind to port 80 and serve external requests directly. Alternatively, these application platforms bind to a local port (like Tomcat's 8080) that is ...
0
votes
0answers
238 views

Remove fb_action_ids of the URL with .htaccess

For some reason my host not let me have more than one htaccess so I have to make all the changes from the htaccess located in the root. My directory tree is as follows: ..../ ....index.html ....css ...
0
votes
2answers
73 views

Apache .htaccess URL rewriting is not working

I am using this code in .htaccess but the last line not giving any response: RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ...
2
votes
2answers
63 views

Need help writing .htaccess / Apache rule

I have some URLs which are now 404 due to site upgrade. I want all URLs starting with www.example.com/archives/* to point to www.example.com/news (notice that after archives there is a wildcard ...
2
votes
1answer
165 views

How should I set up and use a CDN for my web application?

I plan to create and run my own CDN. Currently, media and other static content is being served by the web-servers which are behind a load balancer which is a waste of resources. The network structure ...
1
vote
1answer
641 views

Can I redirect a subdomain to an IP address with a port?

I've got two addresses: ipaddress and ipaddress:100. The first one uses the default port of 80, but the second server (running GitLab) uses port 100. I have multiple IP addresses, but I am wondering ...
1
vote
0answers
45 views

Apache2 only first virtual host is working

i have a probelm with this configurations, only the first virtual host is working and other under the same domain point to the first www.firebuggger.com). do you guys have a clue? NameVirtualHost ...
0
votes
0answers
5 views

Webhosting server Frontcontroller support [duplicate]

I am currently using XAMPP to code my websites, but i want to host it online now. I came across some hosting servers and they had restrictions, one didn't allow the use of a PDO and another didn't ...
0
votes
0answers
16 views

How to measure the file download speed in another country [duplicate]

Now I have a dir with about 5000 files (images) in it and I concerned if this amount will significantly slowdown speed of page load with this images. I'd like to test the load speed of an image from ...
1
vote
1answer
151 views

SSL works on https://dedicatedip but not https://domain

My SSL certificate works on my apache web server but only when I do https://Dedicated_vps_ip. When I do https://domain.com it just doesn't work. I've tried almost everything. What am I doing wrong? ...
0
votes
1answer
66 views

Apache - How to extend localhost scope e.g. to other drives?

In Apache httpd.conf file I can set the DocumentRoot value. After setting this, if I view "localhost" in a browser, I can see the folders and files this given folder contains. I cannot "speak" PHP ...
2
votes
1answer
272 views

Upgrading Apache 2.2 to Apache 2.4 [closed]

I'm planning to upgrade Apache 2.2 running on my centOS 6.5 server to Apache 2.4, Does the new Apache version worth the update?
1
vote
0answers
27 views

Regex isn't honored in mod_security2

SecRule REQUEST_URI "^/(|(.*)/)(lpt1|lpt2|lpt3|lpt4)(/|\.|\?|$)" "t:none,t:htmlEntityDecode,t:lowercase,t:removeWhitespace,block,msg:'X',id:'1000'" SecRule REQUEST_URI "^(.*)//(.*)$" ...
1
vote
0answers
45 views

Two stage Apache rewrite not working

I had a list of "Redirect permanent path/to/url1 http--//domain2.com/path/to/url2" rules working as a test, but when I attempted to couple them with mod_rewrite rules to catch non-matching domain1 url ...
0
votes
1answer
90 views

How to make better RESTful links SEO on static content website with Apache and PHP Router

I have a pretty old website (running on Apache) that serves around 50 static HTML pages. And so I want to change it and add PHP Router to help me serve content in a RESTful way. Now I have tried ...
2
votes
2answers
152 views

How to prevent JavaScript directory access with htaccess

I have a website like http://example.com but the problem with it is that people are able to get access to my JavaScript by pointing a browser to http://example.com/js/. I have little knowledge of ...
3
votes
1answer
95 views

Moving a WordPress site to a new domain - need help with an Apache htaccess URL rewrite rule

I'm helping to move a WordPress site from one domain to another, which includes a change in permalink structure. I know I can use a .htaccess entry, but I'm not that well-versed (yet) in regular ...
2
votes
1answer
64 views

Rewrite one URL to another, and then block the first one using Apache mod_rewrite

Description: I've changed with RewriteRules (no redirect) a typical PHP-like URL: domain.com/script.php?parameter=value to more friendly one: domain.com/script/value But I still can reach the ...
2
votes
1answer
718 views

Apache htaccess results in files being downloaded instead of displayed

So I had this "beautiful" website that did exactly what I wanted it to do. Then I shut down my PC, reboot and...the pages just download now instead of being displayed. I re-installed XAMPP and ...
1
vote
1answer
50 views

Configure htaccess to show index.php as the default page instead of permissions error

Having a problem with my .htaccess. I have this to secure all my documents: Order Deny,Allow Deny from all Allow from 127.0.0.1 <FilesMatch "\.(htm|html|css|js|php)$"> Order Allow,Deny ...
2
votes
1answer
952 views

Apache VERY high page load time

My Drupal 6 site has been running smoothly for years but recently has experienced intermittent periods of extreme slowness (10-60 sec page loads). Several hours of slowness followed by hours of normal ...
1
vote
2answers
126 views

Serve most of a domain with Apache, but use mod_proxy to serve some URLs from Lighttpd

So we wish to host some pages on a new server with apache2, and embed some of our old content & functionality from another server with lighttpd in an iframe. I'm looking at this configuration from ...
0
votes
1answer
108 views

Perl script rendered in browser as code through symlink - fine when accessed directly

I have a Rails 4 app that has some views that post to Perl cgi scripts. The perl scripts are accessed via a symbolic link to a folder called "cgi-bin". When I navigate to a perl script through the ...
1
vote
1answer
432 views

How to configure mod_bwlimited through htaccess

The mod_bwlimited module in htaccess apparently displays an error if bandwidth is exceeded. Anyone know what options are available for configuring it through htaccess?
2
votes
2answers
1k views

How to enable compression in WAMP installed on Windows Server?

How to enable compression in WAMP running on Windows Server 2008? I searched the net and I followed these steps given here: http://www.zigpress.com/2009/04/09/enabling-gzip-on-wamp/. But after ...
0
votes
1answer
152 views

Getting really weird entries in Apache log from Baidu.com?

I was looking through my server logs today, and I noticed this: (it's all one row) 118.244.179.250 - - [16/Oct/2013:20:59:25 +0000] "GET ...
2
votes
3answers
137 views

Different authentication for HTTP POST and GET requests in Apache

I want to authenticate for POST requests for http://path/to/logical/abc.xml (but not GET requests to that URL). How do I put constraints like this in place? The paths are logical and location ...
0
votes
2answers
53 views

Move site from one tld to another

If we want to move site from say xyz.com to xyz.org. What all things we need to do to make sure seo works fine. I am doing something like: Point both xyz.com and xyz.org to same IP where my site is ...
2
votes
1answer
185 views

Restricting post method and authentication to specifc URL paths in Apache .htaccess

I shall start with an example. I want to restrict to POST requests only for http://path/to/logical/abc.xml and restrict to GET only for http://path/to/logical/def.xml. How do I put constraints like ...
3
votes
1answer
3k views

Cannot load local resource

In spring project, I am generating some pdf file automatically in my application and storing it in $CATALINA_BASE in tomcat server. The path is : ...
0
votes
1answer
227 views

Password protecting dynamic URLs in Apache

I am handling many logical files request using the Apache server. To make the path simple I have used mod_rewrite in the httpd.conf. Now I am planning to enforce authentication on these logical file ...
1
vote
1answer
115 views

How to set up a single IP blocklist for multiple sites hosted on the same account

When running multiple sites on the same hosting account, one might find that an attacker has attempted to breach one site. A webmaster may want to block the IP address from all sites hosted in the ...
1
vote
1answer
184 views

Write to an alias directory on Apache

How do I enable writing via PHP to an alias directory. I have the following on my VirtualHost: <VirtualHost *:80> ServerName domain.com ServerAlias m.domain.com ...etc AliasMatch ...
1
vote
0answers
189 views

Require domain alias to show in browser address bar

Similar to question posted here (but not related to sub directories): .htaccess redirect of domain name alias to main domain but must show up as the alias domain I am trying to direct traffic from an ...
1
vote
1answer
22 views

Changing DNS of website to point to another website

I have two website abc.com and newabc.com. Both are on different web servers. I want to shut down abc.com and make sure that I want to send its requests to newabc.com. I am shutting down the servers ...
1
vote
0answers
67 views

How to customize apache mod_sec log output?

I have an apache server which uses mod_security configuration. Those logs are further analyzed and sent out to OSSEC server for intrusion detection and monitoring. That OSSEC server then sends those ...
4
votes
2answers
221 views

Ditch cPanel / WHM in favour of manual seup

We currently use cPanel / WHM on a reseller account but are looking at getting a dedicated server. My first thought was to duplicate this set up on the dedicated box to allow us to quickly create new ...
0
votes
2answers
311 views

301 redirect all pages with a specific extension

I have a website that is not on ASP anymore, it's a Drupal 7 website now. I need to use an .htaccess file to redirect with code 301 all pages with .asp extension to the 404 page or a specific URL. ...
1
vote
1answer
764 views

How do I make Apache stop logging “ ModSecurity: Access denied”?

I have Apache set up on a Linux server and have mod_security enabled. I have a few lines that look like: SecRule REQUEST_URI "^/*admin" drop,phase:1 Because there is no /admin on my website, and I ...
0
votes
1answer
204 views

htaccess redirect pages that don't exist

I have a website that has a little over 100 members. Each member gets a replicated website, and by default the software we use sets up their replicated website at a url like: domain.com/?username ...
0
votes
1answer
46 views

What are best SEO practices when deleting a webpage? What return code should I use? [duplicate]

On a live site, let's say there is a page that is really outdated with old information. Is it ok to just delete it? Or do I have to setup an Apache redirect or do a 404 or something special for the ...
1
vote
1answer
210 views

Is there any way to debug redirection rules in.htaccess?

I have an .htaccess file with over 200 redirection rules. It seems some of them are conflicting each other. Is there any way to find out which one is responsible of redirect on a particular request? ...
1
vote
1answer
2k views

.htaccess redirect of domain name alias to main domain but must show up as the alias domain

I have the following in a .htaccess file: RewriteCond %{HTTP_HOST} ^www\.aliasdomain\.com$ [OR] RewriteCond %{HTTP_HOST} ^aliasdomain\.com$ RewriteRule ^(.*)$ ...