I have Apache httpd on port 80 and Morbo httpd server on port 3000 serving perl Mojolicious code. Morbo is available only from localhost.
Now I want to set up virtual host with proxy so that static files would be served by Apache and dynamic content would be serverd by Morbo.
I'm trying to simply rewrite:
http://www.example.com/home
to
http://www.example.com/home.php
I'm not using .htaccess, but setting rewrite rules in a vhost:
<VirtualHost *:80>
DocumentRoot /Users/me/Sites/mysite
ServerName mysite.air.local
RewriteEngine On
RewriteLog /var/log/apache2/rewrite.log
RewriteLogLevel 6
RewriteRule ^/home$ home.php
<Directory
Hi, I need your help how to solve this one:
httpd.conf:
RewriteEngine on
RewriteCond %{REQUEST_URI} !^.*/$
RewriteCond %{REQUEST_URI} !^.*/[^/]+\.[^/]+$
RewriteRule ^(.*)$ $1/ [R]
https://servername/dir/ -- It works.
https://servername/file.html -- It works.
https://servername/dir.2.0/ -- not work.
Yes, dir.2.0 is directory.
How do you host two separate Django apps, each using a different domain, on the same Apache server using mod_wsgi?
The apps use the same codebase, but each has a different settings.py file (defined as settings_domain1.py and settings_domain2.py).
I've defined an Apache conf file for each site (domain1.com and domain2.com):
domain1.conf:
<VirtualHost *:80>
ServerName domain1
Serve
I have problems with apache on MAC OS Lion 10.7.5.
I have VirtualHosts:
<VirtualHost *:80>
ServerName devel.dev
DocumentRoot /var/www
</VirtualHost>
<VirtualHost *:80>
ServerName test.dev
DocumentRoot /var/www
<Directory "/var/www">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</
Hi all,
I want my Fedora 17 to set up apache using both http and https.
My configurations is :
Apache version : 2.2.22
openssl version : 1.0.0i-fips
I using named virtualhost : myfirstsite.com , mysecondsite.com
First I appended to httpd.conf
Code:
<VirtualHost *:80>
ServerName myfirstsite.com
DocumentRoot /var/www/html/http/one
</VirtualHost>
<VirtualHost *:80
I have an application running on tomcat and fronted with Apache.
I am trying to redirect a www.example.com to www.example.org.
I have a bunch of URLs which all point to the same directory on the server in apache's conf files.