Hi,
My friend's website was working fine until he moved the document root from /var/www/xxx to /home/user/xxx
Apache give 13 permission denied error messages when we try to access the site via a web browser.
The site is configured as a virtual directory. All the Apache configurations were unchanged (except for the directory change).
...
I am building an ASP .NET 2.0 web app for an intranet environment. The site may have to be hosted on an XP machine in the LAN. IIS would restrict the number of connections to 40.
My requirements are different - the number of clients in the LAN could be much higher - say upto 1000 or maybe even more.
The site is built using ASP .NET 2.0 ...
I have a Zend Framework project on a local machine, and as recommended its /public subfolder is made a DocumentRoot in httpd.conf. So I access this app simply with http://localhost.
This new requirement makes me unable to access other
web apps in a former webserver root (which contains a few regular php apps and a couple of zend framewo...
if( count( $_POST ) < 1 ) {
// determine if this was a secure request - we use a non standard HTTPS port so the SERVER_HTTPS_PORT define should always be used in place of 443
$protocol = $_SERVER['SERVER_PORT'] == SERVER_HTTPS_PORT ? 'https' : 'http';
header( "HTTP/1.0 301 Moved Permanently" );
header( "Status: 301" ); /...
I'm wanting to use .htaccess to prevent directory listing.
I've got pages within /location/ but I don't have an index file. So Im wanting to redirect to /location/about.php for example.
Is there a way to do this, without creating a index.html and redirecting requests to that?
Thanks for the help!
...
Hey guys,
I can't quite figure out how to add all of my .jar dependencies to my client jar.
This is what I have so far:
<target name="create-metrics-client" depends="clean,build">
<jar destfile="sd-metrics-client.jar" basedir="${build.home}">
<manifest>
<attribute name="Main-Class" value="com.mycompany.client.M...
I have someone complaining that www.archstl.org (a site I manage) loads fine from his Windows PC, but not on his Mac; and apparently he can't get it anywhere he takes his Mac, either...
I've heard of this happening to one other person, but I can't find an explanation. When they try loading it on their Mac using either Safari or FireFox,...
We're hosting a django service for some clients using really really poor and intermittent connectivity. Satellite and GPRS connectivity in parts of Africa that haven't benefited from the recent fiber cables making landfall.
I've consolidated the javascripts and used minificatied versions, tried to clean up the stylesheets, and what not...
How can I get Apache rewrite to do the following...
take a url received as:
domain/somename/index.php?query=1&anotherquery=2
and change it to:
domain/index.php?query=1&anotherquery=2&name=somename
cheers,
Omer.
...
we have php web application on two db linux web server connected with RAC load balancy with two Oracle db server..
we have a high traffic .. about 500 client concurrency on the same time conenct the web application ..
our linux web server is 2 giga RAM .. and 2 processors.
we want to make apache more performance ..
i have installed zend ...
Hi,
I have one site running in apache and php, when I'm downloading something the site doesn't repond to any click on links until the download finish.
What can be?
Regards,
Pedro
...
My site is Downloading one file using this code:
$flv = **filename**
$ch = curl_init($flv);
curl_setopt($ch, CURLOPT_NOBODY, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); //not necessary unless the file redirects (like the PHP example we're...
Hi folks,
I have django+python+apache2+mod_python installed hosted and working on ubuntu server/ linode VPS. php5 is installed and configured. We don't have a domain name as in example.com. Just IP address. So my apache .conf file looks like this
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Location "/">...
Very basic question - but I couldn't find an answer.
I have got a asp.net web service which is located in an asmx file. This should call a function from a helper library.
Using a different asmx file in Visual Studio everything is working fine - I just had to add the assembly to the dependencies of this project.
Altough I have copied th...
Options +FollowSymlinks
RewriteEngine On
RewriteBase /mysite
RewriteRule ^([^/\.]+)/([^/\.]+)/?$ page.php?p=$1&name=$2 [NC,L]
RewriteRule ^([^/\.]+)/?$ page.php?name=$1 [NC,L]
The above code is written in my .htaccess file. I want my URL
from:
http://localhost/mysite/page.php?p=categoryname&name=article_title
http://localhost/my...
When a program is started via FastCGI, it is exec'd with a socket already open to talk to the web server. The socket's file descriptor number is handed to the program, but how can that be converted to something useful in Java, such as a Socket instance?
My hosting service uses mod_fastcgi for Apache httpd. They won't allow me to configu...
I have this URL:
oldsite.com/profile.php?uid=10
I would like to rewrite it to:
newsite.com/utenti/10
How can I do that?
UPDATE: I wrote this:
RewriteCond %{QUERY_STRING} ^uid=([0-9]+)$
RewriteRule ^profile\.php$ http://www.newsite.com/utenti/$1 [R=301,L]
But $1 match the full query string and not just the user id.
...
Here's simplified .htaccess file:
RewriteEngine On
RewriteRule ^index$ index.php
On my local lamp server everything works fine, but there are some problems on production server. myurl/index returns only blank screen, php is not parsed. When required file is accessed directly (myurl/index.php) it works fine.
I noticed that this prob...
Hello,
I have a header('HTTP/1.0 404 Not Found'); somewhere along the code but it doesn't redirect to the Apache's default 404 page for some reason.
I have a Rewrite Rule on the .htaccess file that redirects every request to index.php. Could that be the problem?
Thanks in advance,
Omer.
...
How would I rewrite script.php?id=3295 to script/3295??
and Im also wondering if someone could explain what these 3 RewriteConds does:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
Thank you very much
...