<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName sub.domain.tld
SetEnv APPLICATION_ENV "development"
DocumentRoot /var/www/sub.domain.tld/public
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/sub.domain.tld/public>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Allow from all
</Directory>
ErrorLog /var/log/apache2/sub.domain.tld.error.log
CustomLog /var/log/apache2/sub.domain.tld.access.log combined
</VirtualHost>Tag Archives: zend framework
NGINX zend framework vhost
server {
listen 80;
server_name sub.domain.tld;
root /var/www/sub.domain.tld/public;
error_log /var/log/nginx/sub.domain.tld.error.log;
access_log /var/log/nginx/sub.domain.tld.access.log;
location / {
index index.php;
if (-f $request_filename) {
break;
}
rewrite ^(.*)$ /index.php last;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ index.php {
root /var/www/sub.domain.tld/public;
fastcgi_param APPLICATION_ENV development;
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
}
}