apache

htaccess url RewriteRule

Hello, This is my url http://mydomain.com/Anonymous/47/comments.php My file hosting script contains lots of rewrites, So how can I redirect this particular type of url to comments.php without conflicting with other rewrites. My htaccess file Options +FollowSymLinks RewriteEngine on ##point to installation directory ##if it is ...

How to serve gziped an otf font using htaccess+php.ini? (no mod gzip or deflate)

Im asking this here cause if i try more i think im going to lose my mind for sure it seems i can't use php_value or php_flag but linking a php.ini using suPHP_ConfigPath works (for php files) here's a list of stuff i tried in random order: AddHandler application/x-httpd-php .otf AddType default_mimetype application/vnd.oasis.opendocumen...

How to tell who is calling web service (PHP on Apache)

I am creating a web service using php's SoapServer built-in class. I have run some basic tests and it seems to be working fine, but now I need to limit who can use the service. Assuming that only other scripts on the same server are trying to consume my service, and that they would do this server-side (as opposed to with AJAX or similar...

disable php automatic addion of ?PHPSESSIONID=xxxx to url

I'm developing a web site which uses wp-cumulus on its home http://www.roytanck.com/2008/03/06/wordpress-plugin-wp-cumulus-flash-based-tag-cloud/ it's a flash component to show a nice cloud tag. in order to use it I issue: <script type="text/javascript"> [...] flashvars.tagcloud = "<tags><a href='/tag.php?tag=Marinetti'>Marinetti</a>...

MacPorts Apache2 Stopped Launching on Boot

Something that I've noticed recently on two different machines is that Apache2 installed via MacPorts seems to have stopped launching when I boot up. The honest truth is that I can't swear it did so before, but it's something I think I'd notice because installing the LaunchDaemon is part of my install process. In fact, if I try to reload...

Do we really need to restart IIS 7 application pool? Do the same practice apply to other web servers?

I am just wondering why is restarting IIS 7 application pool consider a good practice? I know that it'll clean up orphan resources like threads or session state, but how does other web server deal with this kind of problem? Do java developer/admin have to restart weblogic/websphere/apache/tomcat every so often to clean up junk in memor...

Easiest way to simulate no free disk space situation?

I need to test my web app in a scenario where there’s no disk space remaining, i.e. I cannot write any more files. But I don’t want to fill my hard drive with junk just to make sure there’s really no space left. What I want is to simulate this situation withing a particular process (actually, a PHP app). Indeed, temporarily prohibiting ...

JSP deploy problem in jboss

I have Jboss 4.0.4GA setup in Linux. after I start my jboss without problem, I tried to access JSP page in browser, got error: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. A name was started with an inva...

How to run the equivilant of PHP and MySQL on portable media (eg CD, USB and/or iPhone)

I use a local installation of Apache, MySQL, and PHP with XAMPP which require a bit of configuration and installation - is there an alternative language or database system that can be used on portable media such as a CD or DVD-Rom? Although this question is similar to apache-php-and-mysql-portable - I'm looking more for the best portable...

How to implement 301 redirection with PHP/Apache?

When user is visiting by www.domain.name, redirect to domain.name. ...

Using R with Apache & PHP

Is there anyway to run R scripts through Apache and PHP? I would like to be able to pass variables from PHP to R. Has anyone done something like this? Essentially, I would like to know if there is a method for passing variables from PHP to R on an apache server. ...

Pascal compiler running on the server

Hi all, do you have any ideas, how to compile pascal file (*.pas) on the server? Thank you. ...

Subdomain read domain session

Hi .... I create two application, let say my first application called mastersite, and the second application called childesite. I store the childesite project under the mastersite project directory. I create virtual host in my apache server, and the document root of the directory point to masterproject directory supposed the virtual hos...

Sending stdout as response from CGI spawned program

I'm trying to compose a .zip file in a CGI program and send that as the content response. I'm getting stuck in that whenever I spawn a program that prints to stdout, that somehow doesn't get accepted by Apache. It seems to be something to do with spawning a program that writes to stdout. The snippet below reproduces this problem. I ...

Is it possible to obtain the domain where my Flash app is embedded?

The company I work for has their own Flash based video player and the question I get from our execs is "Can we tell what website our player is embedded on?" At first, I hypothesized I could use Apache mod_rewrite, extract the HTTP_REFFER, and append it to the end of the requested URL. So as the browser gets http://.../viewer.swf, I coul...

Duplex or request-reply with Apache ActiveMQ WCF Binding configuration question

I am trying to use the Apache.NMS.WCF bindings for a WCF application and get the following error - Contract requires TwoWay (either request-reply or duplex), but Binding 'NmsBinding' doesn't support it or isn't configured properly to support it. My system.service model looks like this - <bindings> <nmsBinding> ...

comet with php socket server?

i've read that php doesn´t scale well if a lot of users are using your comet implementation? is that because of the apache server or the php language? what is a socket server and does it fix that problem? someone that has set up a php comet server for a lot of users that could give some advice? ...

Rails application needs access to a tmp directory

I'm using the fleximage plugin with a rails application. It throws an error message because it doesn't have access to the tmp directory. When I chmod 777 the tmp directory everything works fine. But if I chmod 666 it doesn't work. What are the proper permissions for folder that needs to be accessed by rails/apache? if chmod 777, am I o...

How can I throttle speed with mod_cband without showing 503?

I am currently using mod_cband with Apache 2.2 to throttle bandwidth on a server. Whenever the traffic exceeds my limits, apache delivers a 503 to some users. Instead I want it to simply block for a while until the rps/kbps is below limit again. Here are my settings: CBandSpeed 1024 100 300 CBandRemoteSpeed 10kb/s 3 2 ...

php script crashing apache

This script crashes apache. I removed url on purpose. Can anyone take a look and offer alternatives? Thanks! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta http-equiv="Content-Type" content="text/h...