I have a bunch of sites set up on my local development environment. Out of those sites I have two sites where I experience horribly slow page load times. Horribly slow, like approximately 5 minutes. The thing is my computer (mac pro osx 10.6, dual xeon nehalem processors, 6 gb of ddr3 memory) is adequately equipped and the other sites lo...
I have a site where a page takes 10 seconds to load with firefox, and a further 10 seconds to load the images. It's a php page running on apache. The Images are just static images.
It runs beautifully on chrome.... instant loading.
googling for the answer has pointed me towards a possible issue with keep alive and the lack of content l...
Hello,
I've been wondering: is it possible to shield a directory/file on a server from the outside world, but make it accessible to PHP?
It's fairly simple. I'm caching webpages on my server with PHP in a certain directory, but I do not want web users to view these files or this directory directly. PHP, on the other hand, must be able ...
I am getting 500 Internal error with Apache and FastCGI. Spent the whole day to find the reason :-/
/etc/apache2/vhost.d/mysite.conf
FastCGIExternalServer /home/me/web/mysite.fcgi -socket /home/me/web/mysite.sock
Listen 80
<VirtualHost *:80>
ServerName os.me #That's my localhost machine
DocumentRoot /home/me/web
...
I need to install Apache Tomcat on my linux server space in rackspace.com. I'm not sure which is the best version I need to use.
I also need support for PHP, Java, JSP, servlets and ASP. Do I need to install these separately or does apache/linux support these by default?
If I need to install them separately, which versions of PHP, Java, ...
Just compiled 5.3.3 from source (win32).
Trying to test some header() stuff but it looks like it won't work with CLI sapi.
Any good docs on putting your compiled source into apache as a module, just like i'd normally do with the pre-compiled module.
Basically my test would be from CLI
php -r "header('Content-Type: text/plain', true, 4...
Hi all,
is it possible to rewrite the following URL:
http://dev.aurora.com/problem/getproblems/fieldset/2?search=false&rows=20&page=1
to
http://dev.aurora.com/problem/getproblems/fieldset/2/search/false/rows/20/page/1
Thanx in advance
...
Hello, I have a problem with RewriteRules.
I'm currently using this rule:
RewriteRule ^([^/.]+)/?$ index.php?clip=$1
This works fine for links as these, where $_GET['clip'] is the value after the slash:
http://example.com/abcdefg
But not for those with a dot character, like these:
http://example.com/abcdefg.png
How should I chang...
I would like to rewrite two urls on my website so as they are more search engine friendly. How can I do this in my .htaccess? For the first I tried this, but got 404 errors:
RewriteRule ^research/([0-9][0-9])$ /research/$1/ [R]
RewriteRule ^research/([0-9][0-9])/$ /urt.php?func=viewresearch&rid=$1
RewriteRule ^research/([0-9])$ /resea...
Hello,
I'm having some difficulties with mod_rewrite. My directory structure (part of it) is:
index.php
.htaccess
app
controllers
models
views
...
public
javascripts
stylesheets
foo
bar
So, as you can see, all static files are in app/public. That's the reason I would like to route requests like:
http://...
I have a directory structure similar to:
public_html/
example.com/
index.php
subdir/
file.jpg
I'm using shared hosting, so http://example.com maps to /public_html/ for its root, and I can't change this. I've added a mod_rewrite rule to handle this issue:
RewriteEngine On
RewriteRule ^$ example\.com/ [L]
RewriteRule (....
Following problem, i want to route all requests from http to htts, after this route all requests wich cause an 404 to route.php script.
But i dont know, how to tell mod_rewrite to 1st use rule one, and than rule two?
My Rule looks like this:
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) ht...
Currently my .htaccess looks like this...
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ $1.php [L,QSA]
It currently changes any /xxx.php file into /xxx. This is great for SEO. However, I also want Mr. htaccess to convert certain ...
I've just set up nginx to serve static request on one site, but I have lots of sites on my server and I wonder, should I right new nginx server configuration for all of them?
What I'm doing now. I have file with all virtual hosts entries for Apache with some-thing like this:
NameVirtualHost *:8080
<VirtualHost *:8080>
ServerName sky2hi...
i want to deploy my django project, what is best (on performance) of these 2 deployment methodologies:
Django-On-Twisted
apache mod_wsgi
i knew that mod_wsgi was recommended by django developers but i feel twisted is more efficient when running multiple django instance.
...
Hey,
I'd like to know why the following htaccess file produces a 500 error:
<IfModule !mod_rewrite.c>
ErrorDocument 500 "Your_Server_Is_Not_Compatible: Apache does not have mod_rewrite loaded. Please check your Apache setup."
RedirectMatch 302 .* index.php
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^(...
Heya, how goes it?
I'm having an issue with apache2.
I have a bunch of sites working off virtual hosts on an apache2 box, and a few of them have apache auth setup. When it fails, I wanted to customize the error page (401?), and so I tried throwing in:
ErrorDocument 401 "Woops"
into the rule, but it didn't work. To make sure I tried th...
I understand thread driven that Apache uses: every connection opens up a thread and when the response is sent, the thread is closed, releasing the resources for other threads).
But I don't get the event driven design that Nginx uses. I've read some basics about event driven design .. but I don't understand how this is used by nginx to h...
I've developed an open source application in php and mysql. I'd like to give it to the end user to install on their computer and use from their browser without me having to host it for them. But the end users are non-developers so they're unlikely to have what it takes to run the application (php-apache local environment like a developer...
I've got a chat program which pushes JSON data from Apache/PHP to Node.js, via a TCP socket:
// Node.js (Javascript)
phpListener = net.createServer(function(stream)
{
stream.setEncoding("utf8");
stream.on("data", function(txt)
{
var json = JSON.parse(txt);
// do stuff with json
}
}
phpListener.listen("88...