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.
3
votes
1answer
32 views
Standard Wordpress mod_rewrite rules interacting with one of my own rules are causing all requests for a certain page to be sent to the homepage
I have WordPress 3.5.1 installed on Ubuntu 12.04 LTS. I'm running Apache 2.2.22.
NOTE: I can't share the domain that I'm working on, and must santize any config files and log outputs. While the ...
2
votes
1answer
60 views
Redirecting one page to HTTPS, and all others back to HTTP isn't working as expected
I have WordPress 3.5.1 installed on Ubuntu 12.04 LTS. I'm running Apache 2.2.22.
NOTE: I can't share the domain that I'm working on, and must santize any config files. While the website is public, ...
0
votes
1answer
27 views
Apache is redirecting all https requests to one vhost
Apache novice here,
We run a server with a few dozen vhosted sites, under apache 2.2.22 on ubuntu 12.0.4. None of them had a SSL before. We had a client request one the other day, and shortly after ...
0
votes
1answer
106 views
Configure clean URLs using Laravel using a rewrite rule to index.php
Recently I've started learning Laravel , I haven't any experience with framework before. I'm encountering the following problem .I'm trying to configure the .htaccess file so I can have clean URLs but ...
1
vote
1answer
17 views
apache2 subdirectory access
I am setting up an apache server on my linux (debian) machine.
I am making a website, with sub directories that contains my css and image file.
Here is my config.
<Directory /var/www/*>
...
0
votes
2answers
27 views
Pretending a file is in subdirectory with .htaccess
I have a web application, and it has a RESTful PHP backend that uses Zend framework (which does its own URL rewriting magic).
The problem is, my backend's entry-page is api.php and the endpoints look ...
1
vote
1answer
37 views
Automatic redirection from http to https with .htaccess authentication in virtual hosting
Hi I have configured Virtual host on apache with .htaccess authentication with SSL. It's working fine when I typed url https://www.example.com:9004/test.php but when I typed ...
2
votes
1answer
34 views
SetEnv directive not working for localhost VirtualHost but works for other VirtualHost
I have two virtual hosts declared: localhost and test.
Both use the SetEnv directive and point to the same DocumentRoot:
NameVirtualHost *:80
<VirtualHost _default_:80>
DocumentRoot ...
0
votes
0answers
20 views
Speed up XHR requests [closed]
I have a Yii project (PHP framework) running on Apache2, where I use AngularJS for the front-end. I have some AJAX requests, but they are kind of slow... sometimes it reaches 2.5 sec.
I'd like to ...
1
vote
0answers
49 views
how to set secure flag on cookies generated from a python application
I have an application (written in python) placed 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 ...
0
votes
0answers
21 views
mod_jk status page “Client Errors”
I have been examining the information displayed in the mod_jk status page for a server instance and there is a column for each worker titled "CE" which the key states is a count of "Client Errors". I ...
0
votes
0answers
10 views
Apache System privilege issues on windows server
I am trying to open an excel application and open a excel file locally on the windows server, using perl module win32::OLE on my web page, running on Apache.
I understand when apache serves the ...
1
vote
1answer
55 views
Best practices for serving multiple sites with Apache2 [closed]
I have a server with a number of virtual hosts. Over the last couple of years I have continually been improving on most parts of serving these sites, everything from how and where to do logging, how ...
2
votes
1answer
114 views
What are the most commonly used and basic Apache htaccess redirects?
This question is here so we can offer users who are looking for information on how to make one or more common or basic redirects in Apache using the htaccess file. All future questions pertaining to ...
0
votes
1answer
32 views
Can I redirect the http request towards an old folder to the homepage using .htaccess file?
I have to following situation: I had an old blog that was made using Joomla (this blog was indexed well enough by search engines). For some problems I delete it and I have create it again using ...
0
votes
2answers
45 views
Issue with Apache redirection [duplicate]
I want to redirect mysite.com or http://mysite.com or www.mysite.com or any other format given my user to http://www.mysite.com, I'm able to achieve this by rewriting following lines in my .htaccess ...
0
votes
1answer
17 views
Web server with or without Panel [closed]
I start a Web server for my company for hosting about 15 website and I didn't install a Control Panel, I do everything by command and i'm pretty comfortable with it but do you think i'm losing time by ...
1
vote
1answer
45 views
Can't Get a Virtual Host to Work
I can't get a specific virtual host to work. This is the first part of my httpd-vhosts.conf file:
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "/Volumes/Data ...
3
votes
2answers
102 views
prevent hotlinking of off-site content?
I have a www.example.com site where I serve all static content (e.g. http.//www.example.com/image.jpg) off a CDN with URLs like http://static.example.com/image.jpg
An Apache 2 .htaccess rule ...
0
votes
1answer
102 views
Apache server not able to read cookies from Browser
I have developed a login authentication page using cookies (with spring security) where for the first time, the user will need to get itself authenticated. Once the user gets successfully ...
1
vote
1answer
61 views
Apache - Reverse proxy
I am using Apache 2 and using the below virtual host definition in httpd.conf file
<VirtualHost *>
ServerName localhost
ProxyPass / http://localhost:8080/stackoverflow/
...
3
votes
2answers
52 views
Installing a PHP framework to a host without public_html or www folders (ftp is DocumentRoot)
I've developed a PHP framework that operates with the directory structure of
/
/classes/
/templates/
/.../
/www/ (public_html)
But I've come across a host that only allows ftp to the ...
2
votes
0answers
49 views
How many connection can my website have? [closed]
As the traffic increased my website hangs quite regularly. The page visit is now averaging 50k per day.
The static page loads fine, but when the page has mysql request it takes too much time to ...
1
vote
0answers
56 views
Multiple PHP 5.x version for different directory [closed]
Is this thing even possible because I searched every where but all I could find was this one post ?
Using .htaccess or using AddHandler/Action MIME module Directive ?
I have compiled all Apache, PHP ...
4
votes
1answer
90 views
What VPS spec would I require to run WordPress [closed]
I am looking to move an existing WordPres website to a VPS. It will be a Debian (Minimal install) running ISPConfig3, Squirrel Mail, Apache 2. The wordpress site currently accepts 40-60 online ...
2
votes
1answer
139 views
Can I dynamically set the SSLInsecureRenegotiation Directive?
We're running Apache 2.2.22 with OpenSSL 0.98, one of our Citrix NetScaler Hosts cannot send a client certificate after handshaking SSL as we have to set SSLInsecureRenegotiation off as a security ...
1
vote
1answer
40 views
How can I bypass modules in apache?
I have an apache server running on an embedded device that serves webpages to clients using a bunch of custom modules.
I'm now trying to load some webpages from the device using ...
1
vote
1answer
53 views
CGI program can't access external sites through a proxy
We have a local "server" machine (Web, Samba, LTSP, DHCP.. etc) 192.168.0.11 running Mandriva / Apache2 which connects to internet using another machine as a proxy (Vista 192.168.0.2:6588). Browsers, ...
4
votes
2answers
83 views
What measures should I take after I find one of my scripts being vulnerable?
I maintain a few PHP-based websites for a small company on a LAMP server. The scripts include CMS such as Joomla or Wordpress, as well as SilverStripe and Drupal installations.
A week ago, I found ...
1
vote
2answers
380 views
GWT “Big traffic change for top URL”
I recently received an email from GWT saying that one of my URL's traffic has suddenly dropped. As it turned out the traffic to the whole site has drastically dropped, from some 300+ unique visitors ...
2
votes
1answer
118 views
How to set htaccess working on opensuse for codeigniter project
I'm trying to have htaccess work on codeigniter project but the module is not working and I don't know how to enable rewrite module. To have read the htaccess. The OS is Opensuse 12.2.
I have this ...
1
vote
1answer
580 views
Apache2 redirect all sub-directories to index.html of main directory?
I want to put an .htaccess file in a directory of my website. For this purpose in:
www.mysite.com/dir/
Then I want anything after /dir/ to direct to /dir/index.html but still display the original ...
1
vote
1answer
53 views
How to configure apache2 to just save certain POST requests without even passing them to application?
I'm running Apache in front of glassfish server using BalancerMember.
For performance reasons I would like that POST requests on certain endpoint are just saved to a file without passing them to ...
2
votes
3answers
568 views
mod_rewrite works within directory not on root
I am having a problem with my RewriteRule for the querystring portion. What I am able to debug is that the rule is being triggered at least because the page "tags.php" is being rendered but without ...
1
vote
0answers
83 views
Apache, Rewrite Rule and Directories
my sites-available/ file looks something like the following:
<VirtualHost *:80>
ServerAdmin webmaster@mysite
ServerName mysite.co.uk
ServerAlias www.mysite.co.uk
DocumentRoot ...
1
vote
1answer
917 views
Is it possible to stream music/video from an Apache server?
I'm just starting to get into setting up a server. I've set up a basic Apache server to access some songs and movies. When I click one of the songs though, nothing happens. When I click one of the ...
2
votes
1answer
170 views
htaccess code for maintenance page redirect
I set up a maintenance page that I could enable through an htaccess file. The html file is located in a folder called "maintenance".
The html file has some images in it. However, visitors to the page ...
1
vote
1answer
839 views
A lot of 408 errors in apache logs - how to prevent them?
I see a lot of 408 errors in my apache2 logs.
I increased RequestReadTimeout and KeepAliveTimout but errors are still there.
The errors look like this:
xx.xx.xx.xx - - [05/Dec/2012:19:33:56 +0100] ...
1
vote
1answer
174 views
Enabling SSL on Apache2 causes address already in use error
My server works just fine on a normal Apache2 install. Now, I'm trying to install subversion on this server using a guide I found on the net called: Installation of Subversion on Ubuntu, with Apache, ...
3
votes
1answer
122 views
redirect non-www to www while preserving protocol
I am aware of the fact that there are tons of questions in this section and in server fault dealing with re-directions from non-www to www URLs. But I couldn't find one dealing with this issue while ...
0
votes
1answer
112 views
Changing domain name - what are the practical steps involved [duplicate]
Possible Duplicate:
How do I rename a domain and preserve PageRank?
I launched a website a couple of years ago, bright eyed and bushy tailed, with dreams of conquering the world. ...
1
vote
1answer
198 views
Using mod_speling with multi-level htaccess and rewriterules
We recently switched formats for managing our 301s. For the most part, everything went well, but it seems to have stopped mod_speling from working properly. Here's what we changed:
old ...
0
votes
1answer
363 views
Apache2's recursive directory permission requirement
The experience I've had thus far is from Ubuntu 10.04 and 12.04 64 bit OS so if there are other OS differences I'd like to know if this is an OS specific problem or not.
The issue I've experienced is ...
0
votes
1answer
79 views
How to ensure apache2 reads htaccess for custom expiry?
I have a site with Apache 2.2.22 . I have enabled the mod-expires and mod-headers modules seemingly correctly:
$ apachectl -t -D DUMP_MODULES
…
expires_module (shared)
headers_module (shared)
…
...
1
vote
1answer
356 views
Apache virtual hosts - Resources on website not loaded when accessed from other hostname than localhost [closed]
Running virtual hosts on Mac OS X 10.6.8 running Apache 2.2.22.
/etc/hosts is as follows:
127.0.0.1 localhost 3dweergave studio-12.fritz.box
255.255.255.255 broadcasthost
::1 ...
0
votes
0answers
101 views
Apache DVB http video Streaming bandwidth or priority problem
I'm streaming few precompressed DVB videos from cloud. The streams are generated from VLC on "impossible" ports (such as 64085, 64086 etc) reverse proxed by Apache on port 80 and 8080.
All the ...
0
votes
4answers
162 views
Need to redirect to another server with no access to DNS A record
I've a website which is on two servers - the one it's on now malfunctioned. I have the site hosted on a second server, but have no access to the DNS Records to point the A Record to the new server IP.
...
3
votes
1answer
150 views
Mod rewrite - redirecting url with certain parameter to new url
I need some help redirecting a url with particular parameter value to a new url. For example how can i redirect these two urls with id 123 and 345 to a new url?
Redirect
...
1
vote
1answer
85 views
Is it possible to use two different ErrorDocuments for different paths of a website?
I currently run PmWiki at mydomain.com/pmwiki. I have a 404 page and .htaccess set up in my site's document root for 404 pages regarding anything that doesn't have to do with my wiki. By default, ...
4
votes
1answer
80 views
Unable to view 2 local sites over network
I have 2 websites running on my local machine that I'd like to view from other machines on the same network.
For /etc/apache2/sites-available/site1.com:
<VirtualHost *:80>
ServerName ...