1/ Create vitural host
<VirtualHost *:80>
ServerName my.{staffName}.{projectName}
ServerRoot /home/staff/{staffName}{zendDefaultWorkspace}/{projectName}/public
DocumentRoot /home/staff/{staffName}{zendDefaultWorkspace}/{projectName}/public
SetEnv APPLICATION_ENV "development"
Alias /uploads/images "/home/web/data/{projectName}/uploads/images"
<Directory /home/web/data/{projectName}/uploads/images>
Options FollowSymLinks Indexes
AllowOverride None
Order allow,deny
Allow from all
</Directory>
RewriteEngine on
Options +FollowSymlinks
RewriteRule !^/(scripts|styles|images|uploads|themes|others) /index.php
</VirtualHost>
2/ Set chown -R www-data:ww-data /www/projectname
3/ Restart apache2
This comment has been removed by the author.
ReplyDelete