FAQ Database Discussion Community


Why does my page page return blank when using a server name with mod_rewrite?

apache,mod-rewrite,virtualhost,mod-proxy
I am using Apache, mod_rewrite, mod_pagespeed, and mod_proxy. When accessing my page via IP (10.10.10.12:80), it successfuly rewrites me to 10.10.10.12:81 and then proxies me to an external server (10.10.10.13). When accessing my page via DNS name (www.example.com), it returns a blank page. Viewing source code shows that my pagespeed...

virtualhost configuration on centos6 vps for a symfony2 project failing with 500 error

apache,symfony2,centos,virtualhost,suphp
I have a VPS running Centos6 (although if my luck so far carries on I might throw it out of the window!). I am trying to get a small symfony2 project up and running but Im bashing against this error message in the server logs. There are other non-framework based...

Enabling virtual hosts in Apache makes every host forbidden (403)

virtualhost,wampserver,apache2.4
I am on Windows 8 and just now installed Wamp 2.5 (Apache 2.4.9) at C:/wamp to test my code locally. I have my source code repository at D:/workpace/project1 which I manage using GIT (GIT is one of the reasons I don't want to disturb its location). After Installing Wamp, I...

Redirect using virtual host domain name beginning with https

apache,mod-rewrite,redirect,virtualhost
I am trying to redirect ME.com or www.ME dot com to https://NOTME dot com. The code below works but when i type https://ME dot com it doesn't go to https://NOTME dot com. i get an error that page is unsecure. code below: <VirtualHost *:80> ServerAdmin [email protected] dot com ServerName ME...

DNSMasq Not Resolving Addresses on Mac Local Web Development Environment

osx,dns,apache2,localhost,virtualhost
I've setup my local web development environment according to -http://mallinson.ca/osx-web-development/. I have done this before, and I got on a new computer, and am trying to do it again. I'm running Apache 2.4.9 on Mac OS X Yosemite 10.10.2 and directing the DNS with dnsmasq. When I try to go...

Default site when using apache virtual hosts

apache,virtualhost
I am hosting two domains using the virtual host directive <VirtualHost *:80> ServerAdmin xy ServerName xyz ServerAlias www.xyz DocumentRoot /var/www/sites/xyz <Directory /var/www/sites/xyz> Options -Indexes +FollowSymLinks +MultiViews AllowOverride All Require all granted </Directory> LogLevel warn </VirtualHost> <VirtualHost *:80> ServerAdmin xy ServerName xyz2 ServerAlias www.xyz2 DocumentRoot /var/www/sites/xyz2 <Directory /var/www/sites/xyz2> Options -Indexes +FollowSymLinks...

Site over https DynDNS not avaiable

ssl,apache2,virtualhost,raspbian,dyndns
i got a raspian + apache2 + ssl and dynDNS The forwarded dyndns works on http, but the site is not avaiable over https and i don't know why... If i try the same on local net everything seems to work correct. i got a prompt over https to accept...

Host two different sites in apache

apache,apache2,virtualhost
I have one Linux server with Apache installed. I configured two sites in it using VirtualHost. I configured the two VirtualHosts for two different domain names. The configuration looks like this: <VirtualHost 12.123.123.123> ServerAdmin [email protected] ServerName example-one.com ServerAlias www.example-one.com DocumentRoot /var/www/html/example-one ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost> <VirtualHost 12.123.123.123> ServerAdmin...

DocumentRoot must be a directory CentOS6.5

apache,apache2,config,virtualhost
I've been having a problem setting a directory in my virtualhosts, and am wondering if you guys can help. This is for Laravel and I have already made sure that the location exists and SELinux is disabled. My config is as follows: http://i.gyazo.com/31cdec5f9d830ec43923b4ccf1588d4c.png I can't paste it here because the...

WAMP Apache VirtualHost and Symfony2 issue

apache,symfony2,wamp,virtualhost
I'm working with WAMP on Windows 7. Every time I try to create a Virtual Host to work with "clean" URLs for a Symfony2 project, I get 404 errors. Here's my httpd.conf: NameVirtualHost localhost <VirtualHost localhost> DocumentRoot "D:/Documents/wamp/" ServerName localhost </VirtualHost> <VirtualHost my-project.local> ServerName my-project.local DocumentRoot "D:/Documents/wamp/my-project/web/" DirectoryIndex app.php <Directory...

Sub-domain doesn't work with www

apache,.htaccess,dns,virtualhost
I'm dealing with a very strange problem when trying to configure a new sub-domain on a Virtual Machine. The problem is simple to explain: I have two virtual Hosts entries on my httpd-vhosts.conf pointing to the same path. Both should should have the same behavior as they are equally configured...

Configuring Alias and Directory inside Apache VirtualHost

php,apache,virtualhost
I have an existing subdomain, subdomain.mysite.com, that I use with SSL. I'm trying to install PHPasswordPusher on this subdomain, but I'm not sure how to do it correctly with Apache. I've followed the instructions as provided. For example, the DocumentRoot for subdomain.mysite.com is /var/www/subdomain, and the two pwpusher directories are...

Redirect HTTP traffic from 443 port to SSL

.htaccess,redirect,ssl,https,virtualhost
I've a site www.example.com that redirects HTTP traffic to HTTPS using RewriteEngine: <VirtualHost *:80> ServerAdmin [email protected] ServerName example.com ServerAlias www.example.com DocumentRoot /var/www/example.com/ .... RewriteEngine on RewriteCond %{HTTP_HOST} ^example.com [NC] RewriteRule ^(.*)$ https://www.example.com$1 [L] RewriteCond %{SERVER_PORT} ^80$ RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L] </VirtualHost> The problem I've found is that google has indexed...

Apache Virtual Host redirect just for servername

apache,mod-rewrite,virtualhost
I have a virtual server, which supports just subdomains of our company. We're using Apache, and I have virtual hosts set up to serve each of these subdomains. People on our network can reach the website of these subdomains by using just the name in DNS, such as just typing...

Apache proxypass for Ionic Framework app

apache,ionic-framework,virtualhost,reverse-proxy,mod-proxy
I've managed to reach internal localhost:8100 (where ionic server lives) from an external device accessing to 192.168.1.130/ionic with a proxypass. My http-vhosts.conf: <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot "/Volumes/DATA/03-www" ServerName localhost <Directory "/Volumes/DATA/03-www"> AllowOverride All Require all granted </Directory> ProxyPreserveHost On ProxyPass /ionic http://localhost:8100 ProxyPassReverse /ionic http://localhost:8100 </VirtualHost> The problem here...

Apache2 how to working www.example.com

apache,http,debian,virtualhost,lamp
I need help. I am sorry wrong write. My LAMP server i created virtual host working http://example.com a NOT WORKING http://www.exaple.com <VirtualHost *:80> DocumentRoot "/var/www/example/1/public_html" ServerName example.com ServerAlias www.example.com ServerAdmin [email protected] <Directory /> Options FollowSymLinks AllowOverride all </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny allow from...

How to connect to database on NAS from Vagrant-box

database,ip,vagrant,virtualhost,nas
I am currently developing a website with a virtual server based on Vagrant. Before that I always used my NAS-webserver to develop my sites. I want to keep using my database on the NAS cause it's easy to handle through phpMyAdmin that is installed as an app on the NAS....

Apache Virtual Server accept request from every domain

apache,subdomain,server,virtualhost
I am developing a website builder and I need Apache to accept request from every domain, like example2.com , example3.com , etc. <VirtualHost *:80> DocumentRoot /var/www/app1 ServerName builder.example.com ServerAlias *.example.com </VirtualHost> Is it possible? I know that I can create a vhost.conf file for each domain and enable it with...

is there any limit for using server_name domains in nginx?

nginx,dns,subdomain,server,virtualhost
I want point multiple domains to a nginx instance. I use server_name for pointing them. server_name mydomain.com www.mydomain.com test.mydomain.com test1.mydomain.com; is the above given is best practice or there's any other safe/stable method for doing the same?...

Django with WSGI behind Apache VirtualHost gives 404

django,apache,python-2.7,virtualhost
I'm trying to run a Django application on an Apache server, in a virtual host using WSGI. I followed the Django docs exactly, but it there still seems to be some issue here. I have everything configured properly as far as I can tell. wsgi.py: import os import sys path='/var/www/docs/'...

Unresponsive localhost

codeigniter,wamp,virtualhost
I have set up wamp 2.5 in my windows 7 (32 bit). I have set up a virtual host accounting.dev and set up the hosts file 127.0.0.1 localhost 127.0.0.1 accounting.dev When I try to access localhost http://localhost The page keeps spinning and loads after a very long long time. When...

Apache2 and Vagrant: localhost mapping

apache,vagrant,virtualhost
I'm using Vagrant 1.6.3 for running Ubuntu 12.04 virtual machine. On this virtual machine I have Apache 2.4.9. For a long time Apache served only one site- there was 000-default.conf file in the /sites-available directory. Now I want to add another site. I've created 2 files in /sites-available directory: site1.local.conf...

run multiple django project in different virtualenv on apache

django,apache,virtualhost
I want to run two different django_projects each in different virtualenv. This is the code : ServerName ubuntu_server_apache <VirtualHost *:80> ServerName dev.hexxie.com ErrorLog "/home/ashish/deployments/mysite_dev/conf/mysite_dev_error.log" WSGIScriptAlias / /home/ashish/deployments/mysite_dev/mysite/mysite/wsgi.py Alias /static /home/ashish/deployments/mysite_dev/static_root <Directory /home/ashish/deployments/mysite_dev/static_root> Require all granted </Directory> Alias /media...

Deploying subdomain under flask and apache2

python,apache,flask,virtualhost
Hi I am deploying a subdomain under my main domain "qianshan.co". When I enter the subdomain "m.qianshan.co" in the address line of browser, it appears the file directory of my project...(that is so embarrassing) I followed several tutorials on Digital Ocean but it didn't work. There must something wrong with...

Apache2 mod_auth_form too many redirects under Location

apache,proxy,virtualhost,http-basic-authentication,mod-auth-form
I am trying to build a Proxy HTTP Authorisation page using mod_auth_form My goal is to have a single Auth page in the DocumentRoot directory, then once the user is connected, just Proxy all routes to the "real" application, running on localhost with another port. I set up my vhost...

VirtualDocumentRoot handling non-existent folders

apache,.htaccess,virtualhost,httpd.conf,vhosts
Using Apache, I have set up the VirtualDocumentRoot and it works this way: <VirtualHost *:80> UseCanonicalName Off ServerName app.example.com ServerAlias *.example.com VirtualDocumentRoot "/home/domains/example.com/%1" <Directory "/home/domains/example.com/*"> Options Indexes FollowSymLinks AllowOverride All Order Allow,Deny Allow from all </Directory> </VirtualHost> If I put the URL of http://mail.example.com, the DocRoot becomes /home/domains/example.com/mail, if it...

Multiple VirtualHosts For XAMPP Not Working

wordpress,apache,xampp,virtualhost,virtual-hosts
Ok, so I'm at my wits end. I've been trying to get this up and running for the better part of a week and it I don't understand why it's not working. Background I have two wordpress sites, one dev and one prod. I would like to be able to...

Google Chrome virtual hosts not working with ERR_NAME_NOT_RESOLVED error after update

apache,virtualhost
I started getting this error for all my local virtual hosts on apache in the morning when I updated my Chrome to the latest version on ubuntu. While all of them work on other browsers chrome started misbehaving with ERR_NAME_NOT_RESOLVED error. Screen shot for the error...

500 Internal Server Error on Xampp's Virtual Host

apache,.htaccess,mod-rewrite,xampp,virtualhost
I'm using Xampp and I have a lot of web projects in my computer, so I decided to create a Virtual Host, but I'm getting the following error in the log when I use htaccess rewriterules to make some friendly URLs: AH00124: Request exceeded the limit of 10 internal redirects...

How do I modify the host file on a Genymotion VM from windows?

android,virtual-machine,virtualbox,virtualhost,genymotion
I'm basically trying to simplify my development workflow a bit. I have a azure mobile services project running inside IIS on my windows host machine, which I can connect to from the Genymotion Android VM using an IP address (10.71.34.1). What I'd like to be able to do is connect...

Access to Laravel 5 app locally from an external device

php,laravel,laravel-5,virtualhost
I've looked for a solution in the web, but I've not found a solution yet. I need to access to my Laravel 5 app from my iPhone, but I'm in develop, so I don't want to publish my app on a web server. If you have a link to follow,...

How to create a virtual host for a Tornado HTTP server

python,tornado,virtualhost
I want to redirect a random local domain i.e. http://mypage.local to http://localhost/:8888 where I am running a tornado HTTP server that delivers the website. I got all the information from the official docs here. Code see below (main.py). I also added the following line to my /etc/vhosts file: 127.0.0.1:8888 mypage.local...

Virtual Host not parsing PHP

php,apache,virtualhost
Alright, I have spent hours searching through very similar questions but I still don't seem to have found the answer: I have set up a virtual host with the following in my httpd-vhosts.conf Listen 80 <VirtualHost *:80> ServerName test.dev ServerAlias test.dev DocumentRoot "/Users/OrangeSoda/OneDrive/Projects/Test/Website" ErrorLog "/private/var/log/apache2/test.dev-error_log" CustomLog "/private/var/log/apache2/test.dev-access_log" common <Directory "/Users/OrangeSoda/OneDrive/Projects/Test/Website">...

vhost config to disable caching of all files

regex,apache,virtualhost
Is this syntax correct for my vhost? I'm not sure that is the correct regex for all files. <filesMatch "\.*"> FileETag None <ifModule mod_headers.c> Header unset ETag Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" Header set Pragma "no-cache" Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT" </ifModule> </filesMatch> ...