Apache+Swoole服务器配置
Apache可以使用代理指令或Rewrite来实现。
ServerName www.swoole.com DocumentRoot /data/webroot/www.swoole.com DirectoryIndex index.html index.php Options Indexes FollowSymLinks AllowOverride None Require all granted # ProxyPass /admin ! # ProxyPass /index.html ! # ProxyPass /static ! # ProxyPass / http://127.0.0.1:9501/RewriteEngine On RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ http://127.0.0.1:9501$1 [L,P]