apache

how to install javax and apache plugins in eclipse?

I'm new to java and trying to rebuild in eclipse 3.4.2 an old package that require javax (classes InternetAddress, Session and others) and org.apache.xpath.* (I don't know exactly why). I'm looking for update sites but google reports billions of pages. An explaination about how/where to find eclipse plugins without getting sick will be a...

Issues Setting up a reverse proxy in Apache

My roommate and I each have a separate webserver we are trying to set up. We are trying to use mod_proxy so that his server will forward requests to my machine (we have two seperate machines behind one router) based on the server name. I've given the basics of what we have in our apache config currently but we are getting a 403 Forbidden...

How to prevent hackers from exploiting Apache ->Sites-available -> Default file

We noticed that a hacker created a domain and configured DNS to point it to our server's IP address. We are using apache2.x on Ubuntu. There is a "default" file in apache's /etc/apache2/sites-available directory and it looks like the the hacker's domain is using "default" apache configuration file to display our web content in their d...

Setting up an Apache Proxy with Authentication

I need to set up a proxy with authentication to verify the behavior of an application that connects to the internet. I am trying to set-up an Apache installation with forward proxy and authentication, and even though I am close to make it work, I wonder if there is maybe a better way, as the configuration is fairly esoteric. How can Ap...

Force redirect to SSL for all pages apart from one

I'm trying to use apache2's mod_rewrite to force SSL connections to a website. So far, it's working fine with the following in the site's <VirtualHost> entry : RewriteEngine On RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [QSA,NC,R,L] This is working well, and redirects everything, which is what I wante...

web site Deployment

Hi, i am developing Mobile web site. I can deploy it in IIS server . Can i deploy the same in Apache server? Thanks!! ...

How to make this work? RewriteCond %{ENV:UNIQUE_ID} !%{QUERY_STRING}

/foo/.htaccess does an internal redirect RewriteRule ^(.*)$ /bar/?%{ENV:UNIQUE_ID} /bar/.htaccess needs to recognise that the request was NOT internal, the issue is that I cannot figure out how to make the comparision work RewriteCond %{ENV:UNIQUE_ID} !%{QUERY_STRING} even a RewriteCond %{QUERY_STRING} %{QUERY_STRING} won't mat...

How do I stop search engines indexing a maintenance page

I need to setup a maintenance page for a website I'm running, e.g. for display when I'm performing site maintenance (scheduled downtime) or if something really breaks and I need to put up a holding page. Is there anything special I need to do to ensure that search engine crawlers don't index it and think that it's my site. Or should I d...

Which Linux distro is best for running in a virtual machine, for programming research?

I'd like to learn LAMP development for my own personal edification. I tried setting up Ubuntu 8.10 "Hardy Heron" in Microsoft VPC, but I can't get the video to work above 800x600. Played with xorg.conf a million times but no joy. Can anyone recommend a good distro to work with that plays well with VPC? Any guidance on getting started...

How do I create a recursive replacement in mod_rewrite?

I'm fairly new to mod_rewrite and I am attempting to convert a URL from http://example.com/foo/bar/blah/etc.html into http://example.com/stuff/foo_bar_blah_etc.html The assumption is that there is not a set number of directories between the domain and the file name therefore I cannot just write a single rewrite rule with 3 placehol...

Can an application depend on two different versions of libstdc++?

Can an application depend on two different versions of libstdc++ at the same time? (e.g.: libstdc++5 and libstdc++6)? The scenario being - some binary depends on libstdc++ 6 but loads an .so that depends on libstdc++5... Will that have any chance of working? ...

Run Silverlight with Apache Server (Under linux)

Hi, I need to deploy a Silverlight 2.0 application to an Apache Server, but it's under Linux. Is this possible? I mean, Do I need .Net 3.5 installed in the server and a Web Site that can execute Asp.Net? Thanks for you help... ...

Apache 1.3 & SSL problem

I've installed (from source) Apache 1.3 on a CentOS 5.2 and I'm trying to get SSL to work. I used --enable-module=so then added AddModule mod_so.c LoadModule ssl_module /usr/lib/httpd/modules/mod_ssl.so to httpd.conf. Now I'm getting this error from configtest: Syntax error on line 44 of /www/conf/httpd.conf: ...

How to find where Apache's httpd.exe is installed?

How do I best figure out if and where Apache is installed on a windows machine? I'm writing a script that uses the installed apache, but sets up it's own config & server-root, and I don't want to hardcode it nor have the user explicitly set it (unless necessary). I tried to search the registry, but couldn't find anything useful. Updat...

PHP Web Service in C# : Invoke() function returns null

I have a problem with consuming a third-party web service in .NET C#. It runs on Apache (NuSoap). Everything works normally up to deserialization (probably...). When I call the SoapHttpClientProtocol.Invoke() function, I always get an object array with one null object. Bad is that this web service doesn't provide a WSDL document. :-( C...

ReWriteRule Apache, php

Hello, I want to be able to redirect the user when they type in http://example.com/user/user-name to http://example.com/user/user-name, which displays user details This is what I am using but it gives me errors Options +FollowSymLinks RewriteEngine On RewriteRule ^.*$ /user/ [R] The error which firefox gives is Redirect Loop ...

Corrupted HTTP headers on Apache/Weblogic 9.2

I have a very strange problem. My application stack is J2EE based and uses Spring 2.5.6 with Spring webflow 2.0.6. The app server is Weblogic 9.2 with an Apache server in front (load balancing). We use SiteMinder Webagent as the authentication layer in apache. The problem below could be caused by any of the layers above - Our site pe...

PHP arrow operator closing tags

I am writing a php app on the websever I set up at my house. It is a fedora10 machine, running php5 and mysql. I have code like this: <?php echo $var->function(); ?> But for some reason the -> is closing the php tag, so the output has 'function(); ?' added to it...is there something I need to change in my php or webserver configurat...

Strange http gzip issue

Here's a strange one: I've got nginx reverse proxying requests to apache 2 with mod_php. A user (using firefox 3.1b3) reported that recently, he's started getting sporadic "What should firefox do with this file?" popups during normal navigation. We haven't had any other reports of this issue, and haven't been able to reproduce it ours...

How Can I Have A Conditional .htaccess Block?

This is an Apache question you've probably come across before. I want to have one source package that I can deploy to my workstation, my staging server, and my production server, but for it to load different .htaccess settings based on what the URL was. Note that I was using a kludge with an IfModule call, but that won't work with our ...