Hi, I have mod_python installed on my server, but if I want to acceses a python script - let's say httü://site.com/something.py the script doesn't run, the download box "pops up"
Any solutions?
This is a continuation from http://stackoverflow.com/questions/1704845/redirect-only-html-files
How can I change my .htaccess to make it exclude certain subfolders or subdomains from the HTML-only redirect? I tried doing using this code to exclude the 'downloads' subfolder and the 'dev' and 'support' subdomains, but it didn't work:
RewriteCond…
How do I upload a file from a Java servlet to a location on a web server within Tomcat/webapps.
I am using Commons upload. I have a location such as myserver:8080/myapp/mylocation where I want to put the files that are uploaded.
I tried using getServletContext().getRealPath("/"); to find where I am and then appended…
Hi There,
When I try to run my site it gives error as Internal Server error, when I refresh the page I get my result properly.The error page looks like this:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server…
Hi all, basically i am launching a site soon and i predict ALOT of traffic. For scenarios sake, lets say i will have 1m uniques a day. The data will be static but i need to have includes aswell
I will only include a html page inside another html page, nothing dynamic (i have my reasons that i wont disclose to…
this is my controller in CI
class Welcome extends Controller {
function Welcome()
{
parent::Controller();
}
function index()
{
}
function bil($model='')
{ }
I want to do a rewrite so that
http://example.com/index.php/welcome/bil/model
becomes
http://example.com/model
in my htaccess I…
I'm no expert in mod_rewrite at all and I'm trying to add a condition to the rule below to:
match which is not equal to 'share'
not match anything with a dot in it
RewriteRule ^([^/]*)$ http://domain.com/directory/index.php?key=$1 [L]
http://domain.com/directory/share will not be matched (share)
…
I'm using this rule:
RewriteRule ^(.*)$ public/$1 [L]
and in public folder I use:
$url = $_GET['url'];
when I try to acess something on url using slash or it works fine and I get:
/cities/display/45 => Array ( [0] => cities [1] => display [2] => 45)
But when I try to…
EDIT: Looks like the problem was a rootkit that corrupted a bunch of low level linux commands, including top, ps, ifconfig, netstat and others. The problem was resolved by taking all web files off the server and wiping it.
A dedicated server we operate is having a strange issue. Files are not be…
Hi,
I'd like to track the views/impressions of images on web pages, but still allow the images to be embedded in HTML, like in the "img src="http://mysite.com/upload/myimage.jpg"/" element.
I know in Windows I can write a handler for ".jpg" so the URL will actually trigger a handling function…
I have the following RewriteRule in my .htaccess to redirect from a friendly url to my main application file:
RewriteRule ^\/(.*).html$ home/www/page.php?p=$1 [L]
This should send any url that points to a html page to page.php with the url as a parameter that will be parsed by the app.
This…
I've got to redirect a URL that has a question mark in it, and I just can't figure out the proper .htaccess code to make it happen.
Example:
redirect 301 /home.php?cat=16 http://www.example.com/furniture.html
I believe I need to do a rewrite condition, but I'm no htaccess expert.
I am wondering about my VPS providers ubuntu terminal.
Are all these terminals the same?
I think they are so user-UN-friendly.
I can't copy-paste into the terminal, when I try opening textfiles, I can't scroll up and down easily. I cant save easily. Nothing is easy...
Is it always like…
I see the savepath has no value but does it default to something? Are the other values OK? I have access to the server and PHP files but how and what do I change?
The specific issue -
On page 1:
session_start();
$_SESSION['uType']=$row['usertype']; //save user type to session…
I am trying nest a Location directive inside a virtual host config like this:
<VirtualHost *:80>
ServerName mysite.com
DocumentRoot /home/deployer/apps/mysite/current/public
ErrorLog /var/log/prod.log
<Location "/shop">
DocumentRoot…
It says that port 3306 might be busy - i have changed it (SettingsComponents Settings) but just nothing?
VertrigoServ ? MySQL database server
does not work correctly. Check whether
other applications use the important
port (3306) and terminate them.
Moreover, check…
We have Plesk 8.3 installed. I've started using their Watchdog module to track server useage. Our server routinely has trouble with the amount of traffic we have and I think our MySQL queries need to be smarter. Anyway, looking at the stats from Watchdog, it seems like…
Hello, I recently discovered that one of our sites has a memory leak in it, it's very strange because it happened all of the sudden. I've used GTop to measure the memory size per process and it tells me that the real value is somewhere around 65 MB (on the server) per…
Hi,
i tried redirecting some folders to the subdomains with the same names as the folders. I tried this way but it didn't work:
RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC]
RewriteRule ^(test1|test2)(.*?)$ http://$1.domain.com$2 [R=301,L]
I guess the problem is…
I'm writing an Fast-CGI application that makes use of sqlAlchemy & MySQL for persistent data storage. I have no problem connecting to the DB and setting up ORM (so that tables get mapped to classes); I can even add data to tables (in memory).
But, as soon as…
Dear all
Is there any way to configure both mod_jk and .htaccess in a same call
what are the steps follow plz replay me
httpd.conf
ServerAdmin "webmaster@vpaycash.in"
ServerName www.vpaycash.in
MIMEMagicFile /dev/null
CustomLog…
Hi guys,
I'm sure many of you have visited amazon.com. When you do, amazon create a list of browsed menu items at the very bottom of the home page. I am currently doing a project that applies personalisation and customisation and wanted to…
Hi guys,
I'm sure many of you have visited amazon.com. When you do, amazon creates a list of browsed menu items at the very bottom of the home page.
I am currently doing a project that applies personalisation and customisation and wanted…
Hi,
I have a .htaccess redirect for "non www" like this:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
it is working. But, i have also some subdomains other than www.
If I…