apache2

What is the correct way to setup "Pretty" permalinks in Wordpress 3.0

Hi I'm been trying to figure this one out for ages but I can't seem to do it. I have an ubuntu 10.04 server with wordpress installed on it. I am trying to make my wordpress use "Pretty" permalinks however every time I try it doesn't seem to work. This is my apache config: <VirtualHost *:80> ServerAdmin webmaster@localhost ...

Apache 2 mod_rewrite problem

<IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^browse/videos/(.*)/(.*)/(.*)/(.*) /videos.php?sortby=$1&filter=$2&page=$3&title=$4 RewriteRule ^videos/(.*)/(.*) /playvideo.php?videoid=$1&title=$2 </IfModule> url www.example.com/browse/videos/z/0/1/LastAdded goes to videos.php but url www.exaple.com/videos/10/play.html also go...

How to render index.html normally when using DAV SVN?

I have the DAV SVN Apache module running so that I can serve a read-only version of my repositories over HTTP. My goal is to be able to show available HTML-based code documentation (javadoc, etc.) in my repositories using the browser's normal HTML rendering capabilities, instead of the files being spat out as plain text by the DAV SVN m...

Getting PSP and Publisher handler working together in Apache2 mod-python

Hello guys. I could just have mod-python working on apache2 for the first time and I could play with PSP and Publisher handler a little by adding either AddHandler mod_python .py PythonHandler mod_python.publisher PythonDebug On Or AddHandler mod_python .psp PythonHandler mod_python.psp PythonDebug On to /etc/apache2/sites-availab...

Ruby deployment server problem: Missing the Rails 2.3.5 gem.

Hi, I'm trying to install a rails server for my application. I'm using ubuntu 10.04 TLS with apache2 as web server. I made some search on google but I do not found something that help me. When I tried to connect on my application I have following error: The application has exited during startup (i.e. during the evaluation of config/envi...

http to https redirection using .htaccess not working

Hi, I want to redirect http://myip/admin to https://myip/admin. I am trying to use .htaccess to do this (want this only for the admin folder). Contents of .htaccess placed in the relevant folder: RewriteEngine On RewriteCond %{HTTPS} !on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} (apache mod_rewrite is enabled). B...

reducing execution time of indivual php files that are not mandatory to the system like Ajax JSON requests.

I want to make sure AJAX responses from dynamic JSON pages does not slow down the server when the SQL queries take too long. I'm using PHP, MySQL with Apache2. I had this idea to use ini_set() to recude the execution of this pages with the inline use of the mentioned method or the set_time_limit() method. Is this effective? Are their any...

301 redirect urls

Hi I'm trying to redirect an old url to a new one using 301 I need an example of RewriteQueryString for the following 301? http://www .example.com/search/?depId=1&typeCatId=1 to the following http://www.example.com/mens/clothing So when I type in the long URL in the browser, I am redirected to the new, shorter URL Any ideas? ...

mod_rewrite and server environment variables

Hi Guys, The setup I have is as follows: I have one Apache server acting as a URL rewriting engine (SERVER1). I have a second server (Apache too) which runs a web application (SERVER2). First tries to authenticate users. Part of the authentication protocol involves a lot of redirection between that application server and the authen...

Problem With Routes After Deploying Sinatra Application

I wrote a simple Sinatra application with two "routes": "/show" and "/listshows". When I run the application on top of Webrick, everything works beautifully for both the static and non-static routes. Here are the URL's that I use: http://localhost:4567/listshows http://localhost:4567/show?guid=someguid Today, I deployed my simple ...

CakePHP Installation Broke (Probably Apache2 Problem)

I tried to install CakePHP on my home Ubuntu 10.04 desktop for development/testing purposes, and I believe I have gone through all the appropriate steps. However, I am still running into the problem that my layout is broken. I believe this is a DocumentRoot or mod_rewrite problem, but I don't have enough experience in Apache to diagnose ...

apache2 .htm extention

Since I've installed LAMP stack on ubuntu server with apache2, I've been having a weird issue. Whenever I create a file called filename.html, it renders and displays on browser fine. But whenever I create file with extension .htm, it will prompt the browser (filrefox) to save the file. I've already looked into /etc/mime.types and /etc/a...

Apache 2.2 ProxyPass with Weblogic - Can't use root

Hi all, I'm trying to configure an Apache 2.2 proxy server to point to multiple Weblogic instances. I'm doing fairly well with everything but a minor point. I can get this to work: ProxyPass /QA http://IP:PORT/ by going to http://IP:PORT/QA But I can't get this to work: ProxyPass / http://IP:PORT/ by going to http://IP:PORT/ I d...

make example.com/user/Bob go to profile.php?user=Bob

My current http access file is # Pound sign comments a line out # Disallow viewing of htaccess files <Files .htaccess> order allow,deny deny from all </Files> Options +FollowSymLinks RewriteEngine On # enable hiding php extension RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^(.*)$ $1.php ...

.htaccess profile rewrite help

RewriteRule ^user/(.*)/(.*) profile.php?user=$1&v=$2 [L] works for http://10.0.1.5/user/Kevin/wall/ if i do http://10.0.1.5/user/Kevin/wall it 404's. if i do http://10.0.1.5/user/Kevin/ it 404's if i do http://10.0.1.5/user/Kevin it 404's I tired RewriteRule ^user/(.*) profile.php?user=$1 [L] RewriteRule ^user/(.*) profile.php?u...

cannot render serverfbml in Linux (ubuntu + apache2 + asp.net mvc)

I am writing a facebook application. The application is written in ASP.NET MVC. For the compatibility reason, I chose to use .NET 3.5 instead of .NET 4 (Because the application will be ported to Linux with MONO, which previous supports up to .NET 3.5). In the end of the applicaton, user will see a friend selector to send invitation. Plea...

Help with .htaccess file. mod_rewrite for custom urls?

Situation: I have a few hundred posts each belonging to a particular category. A] Now when the user visits the home page, the content is irrespective of the category sorted by date. http://www.example.com He can navigate through different pages like: Type 1: http://www.example.com/3 which corresponds to http://www.example.com/inde...

Which Apache2 modules can I safely disable?

These are my enabled mods: alias auth_basic authz_default authz_groupfile authz_host authz_user autoindex deflate dir env mime negotiation php5 reqtimeout rewrite setenvif status I'm attempting to reduce Apache's memory footprint as much as possible. Can anyone guide me in the right direction as to which of these I absolutely need and...

loading php pages with out .php extension

Hi All, I'm new to php and I have created a simple site using php5. my question is I have a page called login.php , when I type http:///login.php, the page loads But what I want to do is to load the page without giving the .php extension , as follows http:///login Can I do like this, I'm running on apache2 and hoping to publish my s...

Using apache rewrite modules without .htaccess file

hey guys, I have just completed this tutorial (and afew others) on how to use mod_rewrite with apache: http://www.workingwith.me.uk/articles/scripting/mod_rewrite however they all focus on using the .htaccess file to rewrite URLs my question is, how can you use this rewrite engine module from the apache.conf / httpd.conf files or from...