Hello.
I use mod_rewrite/.htaccess for pretty URLs.
I'm using this condition/rule to eliminate trailing slashes (or rather: rewrite to the non-trailing-slash-URL, by a 301 redirect; I'm doing this to avoid duplicate content and because I like URLs with no trailing slashes better):
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{RE...
Hello,
I would like to set up a Zend Framework project in a subdirectory:
/public_html
/public_html/here_i_want_to_setup_zf
Document root is /public_html. I would like the Zend Framework project to be accessible via URI like this:
http://example.com/here_i_want_to_setup_zf
How should I edit my htaccess file?
RewriteEngine On
...
I have had an attack on my web server where .html files were copied by FTP into a public html directory.
The FTP password was very strong.
I'm trying to determin whether PHP initiated the FTP transfer. Is there an Apache or Nix log file that can give me this information?
Additional information
I have FTP log entries which seem to show...
I have multiple Tomcat servers. In each tomcat I am loading all images. I want to move the images from Tomcat to Apache and access the images from there.
My question is: is there any configuration to get the images in a Java web application from Apache instead of Tomcat?
...
The title of this question may be a bit misleading. I couldn't quite think of anything better.
Here is my problem. I am developing an Apache module that needs to manipulate a bit of content in the requested HTML document (this document can be a file on the disk or may be dynamically generated by CGI or PHP) and so I am using libxml2 wit...
I've got a site where all the pages are php scripts, so the URLs end .php.
I've added the following to a .htaccess file, and I can now access the .php files without the .php extension:
RewriteEngine On # Turn on rewriting
RewriteCond %{REQUEST_FILENAME}.php -f # If the requested file with .php on the end exists
RewriteRule ^(.*)$ $1...
Hey, I'm trying to run Apache Tomcat 6.0.26 on Mac OS X - Snow Leopard, but with no luck :(
I've downloaded Tomcat core from: http://tomcat.apache.org/download-60.cgi unarchived it at /Livrary/Tomcat directory, but when I'm trying to run it using ./bin/startup.sh command from log/catalina.out logs it seem's that it can't find servlet-ap...
Hi -
I want to configure apache so that the access and error logs generated from apache include are named as follows:
<server-name>_access_<timestamp>
<server-name>_error_<timestamp>
I have the timestamp part figured out using rotatelogs:
CustomLog logs/access_log combined
CustomLog "|bin/rotatelogs -l /var/logs/access_%Y-%m-%d 8640...
So redhat uses python 2.4 and I need to upgrade to python 2.6 (so I did an altinstall) does anybody know how to install mod_python? (I am installing from source.) This is what I ran:
./configure --with-apxs=/usr/sbin/apxs
./configure --with-python=/usr/local/bin/python2.6
make
make install
But according to a stack trace I get mod_pyth...
Say I have the following domain:
example.com
I have a Wildcard SSL certificate for this domain. Subdomains like test.example.com validate properly. However, when I try to use a domain like demo.test.example.com, I get an error message in all major browsers:
demo.test.example.com uses an invalid security certificate.
The certificate i...
EDIT :
I am trying to send an xml file as a post request in Android.
The server accepts text/xml. I tried creating a MultipartEntity, which has a content type of multipart/form-data.
HttpClient httpClient = new DefaultHttpClient();
/* New Post Request */
HttpPost postRequest = new HttpPost(url);
byte[] data = IOUtils.t...
I would like to parse a lot of apache log files with a C library.
Who knows a good C library which is optimized for good performance?
Thank you for advice!
...
on my local website i would like to the /web directory point to a folder on my windows box. I have tried putting a shortcut there and it failed. I tried creating an alias in my httpd.conf and i get a 403 http error. Im out of ideas!
...
Hey folks,
I an trying to do the following -
1) Access POST submission data in Apache
2) Create a file name by using some of the parameters in POST data from 1)
I will like to then read the file from disk vs using back-end application to regenerate the page.
Any help will be greatly appreciated.
...
Hello everyone.
I am developing an Apache module. During development I found it convenient to use logging functions at various points in my code.
For example after opening a file, I would log an error if the operation was not successful so that I may know exactly where the problem occurred in my code.
Now, I am about to deliver my modu...
Hey
A newbie to Eclipse and Java...can anyone tell me how could I install the Apache common lang 2.5 in Eclipse?
http://commons.apache.org/lang/download_lang.cgi
Thanks!
...
My code is consistently generating the following error:
org.apache.axis2.AxisFault: Timeout waiting for connection
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:203)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:76)
...
Hey,
I had problems deploying a Django project - Review Board. I did what the document says and but got "Error 403" errors when I tried visiting the site. Maybe I should have posted this question on serverfault.com, but I think this may help people write/deploy Django application in general.
Here is the installation:
I installed Revie...
This is what I learned by doing some searching. These things were taken from many places. Please point out any missing things. (I have not yet tried this out, just want to clarify what I'm going to do)
For hosting I need to have a static IP. But my ISP provide dynamic IPs. So I used DynDNS (as Cuga adviced in this). I belive this will r...
So I am fairly noobish at .htaccess rewriting.
Currently this is my setup for my codeigniter setups:
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
This works fine when I am rewriting EVERYTHING to th...