Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

doc root:

root@helloise:/var/www/symfony2# ls -lah
total 8.0K
drwxr-xr-x 2 root root 4.0K 2012-01-11 10:04 .
drwxr-xr-x 6 root root 4.0K 2012-01-11 09:52 ..
lrwxrwxrwx 1 root root   36 2012-01-11 10:04 web -> /home/helloises/symfony2/Symfony/web
root@helloise:/var/www/symfony2# 

AND:

helloises@helloise:~/symfony2/Symfony$ ls -lah
total 48K
drwxr-xr-x  7 helloises helloises 4.0K 2012-01-11 11:09 .
drwxr-xr-x  3 helloises helloises 4.0K 2012-01-11 10:01 ..
drwxr-xr-x  2 helloises helloises 4.0K 2012-01-06 08:56 app
drwxr-xr-x  2 helloises helloises 4.0K 2012-01-06 08:56 bin
-rw-r--r--  1 helloises helloises 1.6K 2012-01-06 08:56 deps
-rw-r--r--  1 helloises helloises  830 2012-01-06 08:56 deps.lock
-rw-r--r--  1 helloises helloises 1.1K 2012-01-06 08:56 LICENSE
-rw-r--r--  1 helloises helloises 6.3K 2012-01-06 08:56 README.md
drwxr-xr-x  2 helloises helloises 4.0K 2012-01-06 08:57 src
drwxr-xr-x 13 helloises helloises 4.0K 2012-01-11 10:01 vendor
drwxr-xr-x  3 helloises helloises 4.0K 2012-01-11 11:13 web

/etc/apache2/httpd.conf:

<VirtualHost *:80>
DocumentRoot "/home/helloises/symfony2/Symfony/web"
DirectoryIndex index.php
<Directory "/home/helloises/symfony2/Symfony/web">
  AllowOverride All
  Allow from All
</Directory>

Alias /sf /home/helloises/symfony2/Symfony/...
<Directory "/home/helloises/symfony2/Symfony/....">
  AllowOverride All
  Allow from All
</Directory>
</VirtualHost>

thanks

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
158 views
Welcome To Ask or Share your Answers For Others

1 Answer

Configure your HTTPD. Apache example: DocumentRoot "/opt/webapps/Symfony/web

Or

Put it anywhere and symlink /Symfony/web to /your/www/path/something


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...