Build Vhost in “extra/httpd-vhosts.conf”
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | <VirtualHost localhost:80> NameVirtualhost localhost ServerAdmin root@localhost DocumentRoot "/opt/httpd/htdocs" </VirtualHost> <VirtualHost sqladmin.localhost:80> # NameVirtualhost sqladmin.localhost ServerAdmin [email protected] DocumentRoot "/opt/www/sqladmin" ServerPath "/opt/www/sqladmin" ServerName sqladmin.localhost # ServerAlias sqladmin.localhost <Directory /> Options Indexes FollowSymLinks MultiViews IndexOptions FancyIndexing AllowOverride None DirectoryIndex index.php Order Deny,allow Allow from all </Directory> ErrorLog logs/sqladmin.localhost-error </VirtualHost> # <VirtualHost php.localhost:80> # NameVirtualhost php.localhost ServerAdmin [email protected] DocumentRoot /opt/www/php ServerPath /opt/www/php <Directory /> Options Indexes FollowSymLinks MultiViews AllowOverride None DirectoryIndex /phpinfo.php Order Deny,allow Allow from all </Directory> ServerName php.localhost ErrorLog logs/php-error_log CustomLog logs/php-access_log common </VirtualHost> |
Let test the config file!
1 2 3 4 5 6 7 8 | fred@localhost:php$ sudo /opt/httpd/bin/httpd -S VirtualHost configuration: 127.0.0.1:80 is a NameVirtualHost default server localhost (/opt/httpd/conf/extra/httpd-vhosts.conf:29) port 80 namevhost localhost (/opt/httpd/conf/extra/httpd-vhosts.conf:29) port 80 namevhost sqladmin.localhost (/opt/httpd/conf/extra/httpd-vhosts.conf:35) port 80 namevhost php.localhost (/opt/httpd/conf/extra/httpd-vhosts.conf:53) Syntax OK |
You can resolve in this way:
我在公司电脑的 /dev/hda10 一直感觉不对,不知道是不是有坏道,也没管它,今天早上启动 Ubuntu Dapper 的时候 /dev/hda10 就不能挂载,fsck 也不行。可以看看下面的具体情况
Recent Comments