hi there
i use an apache to run my django instances.
my apache doubles the django output.
so in developement i get this:
my response text
but on apache "production", this:
my response text
my response text
my vhost config look like this:
<VirtualHost *> ...
I'd like to know if it is possible to do this:
To keep the root clean of all files, I want to put everything under a sub-directory (index.php, .htaccess,...). Is it possible to configure a rule in .htaccess which resides in this sub-directory to redirect from root directory to index.php which also resides in the sub-directory ?
Then wh...
Hi,
how can i write a mod_rewrite rule to handle all the requests like http://mysite.example/images/IMAGE.gif|jpg|png and serve instead http://mystaticfiles.example/IMAGE.gif|jpg|png ?
Thanks
...
When using CSS3 and custom fonts, the client needs to download .oft or .ttf files. These files can be >50K. Can these files be compressed? How? Assuming Apache web server.
I am looking for a compression technique or an Apache configuration. Any ideas will help because downloading +50K files should be prevented.
...
Hi,
im gettin an error 500 in xampp. When i open /opt/lampp/logs/access_log i get this line:
127.0.0.1 - - [18/Jul/2010:23:02:53 +0200] "GET /miembros HTTP/1.1" 500 1900
Is there any way to get more information (cause, etc) about the error ?
Regards
Javi
...
Hi,
This is the htaccess I have:
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/pages
RewriteRule ^(.+)/$ /$1 [NC]
RewriteRule ^$ /pages/index.php [NC]
RewriteRule ^([a-z]+)\?([^/]+)$ /pages/$1.php?$2 [NC]
RewriteRule ^([a-z]+)/([^/]+)$ /pages/$1.php?q=$2 [NC]
RewriteRule ^([a-z]+)$ /pages/$1.php [NC]
ErrorDocum...
Hello,
I have a main page, index.php and I would like to redirect all URI to index.php despite the existence of the file/directory in the server. Basically, I would like to give priority to index.php over htaccess.
Currently, I have the following:
...
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ...
i am reading Dive into HTML5: Offline web apps: Cache manifest
... but it must be served with the
content type text/cache-manifest. If
you are running an Apache-based web
server, you can probably just put an
AddType directive in the .htaccess
file at the root of your web directory
AddType text/cache-manifest
.manifes...
Hi all,
I have Apache httpd server and node.js.
I need to emulate real JSON data which changes every time.
I found, that I can run node.js as server in standalone mode like this:
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).list...
My Apache2 log is spitting out these errors on my Ubuntu 10.04 server. When I hit the server I get Internal 500 Errors and the log has this:
[Mon Jul 19 07:40:11 2010] [error] [client 192.168.1.152] File "/usr/local/lib/python2.6/dist-packages/django/utils/dateformat.py", line 281, in format
[Mon Jul 19 07:40:11 2010] [error] [client ...
Hello all,
I have installed the full verison of isapi_rewrite and have setup a proxy directive so that all traffic to my workstation in the folder 'ngis' (on any port) goes to another server. This is for testing purposes to check suitability before rolling out isapi_redirect to our prod servers.
I have a rule as follows:
RewriteRule ^...
Hi,
I am using Django via FastCGI. I have a non-django part of my website and I need to protect it with basic apache auth.
Here is a part of my config:
RewriteEngine On
RewriteBase /
RewriteRule ^media(.*)$ - [L]
RewriteRule ^SUPERSECRET(.*)$ - [L]
RewriteRule ^images(.*)$ - [L]
RewriteRule ^robots.txt$ - [L]
RewriteRule ^(admin_media/...
I need help with some rewrite rule
Pretty much all my pages look like this:
index.php?key=guild&id=939&view=board
index.php?key=player&id=300941&view=edit
index.php?key=mod&id=41&view=download
Would i be possible to use 1 rewrite rule? Since all my pages have same $_get's
/guild/939/board
/player/300941/edit
...
Is there a method, javascript script or anything that could allow to preload hyperlinks in the page? For instance, I want that when user comes to http://ahostel.lt/ and the page fully loads, the script would start preloading other pages in the navigation (Booking, Map, Facilities, Look around, [...]). So when user clicks on any of those ...
We have a ".properties" file that has some values persisted as JSON. I keep getting bitten by special characters, though -- the org.json.JSONObject isn't very verbose about what causes it to choke, so it takes forever to figure out that I wrote {"key":"this is a \"Value\""}, but I read {"key":"this is a "Value""}. Obviously, the latter...
I am trying to configure Apache on my server to work with ssl, but everytime I visit my site, I get the following message in my browser:
SSL connection error.
Unable to make a secure connection to the server. This may be a problem with the server, or it may be requiring a client authentication certificate that you don't have.
Error 107 ...
We are migrating web servers, and it would be nice to have an automated way to check some of the basic site structure to see if the rendered pages are the same on the new server as the old server. I was just wondering if anyone knew of anything to assist in this task?
...
Hi,
I have two domains pointing to the same host, say example1.com and example2.com.
I already have a redirect:
RewriteRule ^([A-Za-z0-9-]+)/$ page.php?q=$1 [L]
to catch things like example1.com/hello-world/ => example.com/page.php?q=hello-world
Now I need 3 specific conditions to be met:
1) example1.com/special/ => example2.com/sp...
I'm working on Windows with Apache and PHP.
I just installed MySQL, configured it, and started it.
But when I run
<?php
phpinfo();
?>
I don't see the mysql section, which means that I cannot use MySQL commands in the PHP code, right ?
Why is that ?
Should I do any manual connection between MySQL / PHP / Apache ?
...
in zend framework, i usually setup vhosts so that i can refer to my static resources like js, css via "/css/styles.css" but what if i dont setup vhosts? my path to the static resources will be like "http://localhost/app1/css/styles.css". is there a way to find find what is the proper path to css/styles.css without hardcoding the "prefix"...