Pergunta

I have the virtual host setup in my /etc/apache2/sites-available and the file name is roomstaysback.

<VirtualHost *:80>    
DocumentRoot "/var/www/roomstaysback/public"    
ServerName roomstaysback

#This should be omitted in the production environment
SetEnv APPLICATION_ENV development

<Directory "/var/www/roomstaysback/public">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>    
</VirtualHost>

My /etc/hosts file contain the following:

127.0.0.1   roomstaysback

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

The sites-enabled also contain the roomstaysback and it enabled properly. My code is in /var/www/roomstaysback/public and it also contain the .htaccess file with proper mod rewrite rule.

But when I trying to open roomstaysback in browser it shows nothing (blank page).

Is my virtual host is configured properly or not. If it then where should be the problem. If not then help for configuring it properly. Thanks.....

Foi útil?

Solução 2

check your /var/www/roomstaysback folders permission if it is read only mode then change it to the read-write mode.

Outras dicas

i had faced the same problem while setting up virtual host in ubuntu for zend framework.add a trailing slash in the following.

<Directory /var/www/roomstaysback/public/>

here is the tutorial that might help you.

http://blog.code4hire.com/2011/03/setting-up-virtual-hosts-for-apache-on-ubuntu-for-local-development/

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top