我正在询问如何配置nginx。现在,我尝试了一些变化并对此进行了堆叠:
+----------+------+------------+-----+-------------+--------+-------------+
| order_no | code | disp_order | lvl | description | state | supplier_id |
+----------+------+------------+-----+-------------+--------+-------------+
| RM001-01 | 1 | 0 | 1 | HK140904-1A | | 0009 |
| RM001-01 | 2 | 1 | 2 | HK140904-1B | | 0009 |
| RM001-01 | 3 | 2 | 3 | HK140904-1C | | 0009 |
| RM001-01 | 4 | 3 | 4 | HK140904-1D | | 0009 |
| RM001-01 | 5 | 4 | 5 | HK140904-1E | 2 | 0009 |
| RM001-01 | 6 | 5 | 2 | HK140904-1F | | 0009 |
| RM001-01 | 7 | 6 | 3 | HK140904-1G | 1 | 0009 |
| RM001-01 | 8 | 7 | 3 | HK140904-1H | 3 | 0009 |
| RM001-01 | 9 | 8 | 4 | HK140904-1I | 1 | 0009 |
+----------+------+------------+-----+-------------+--------+-------------+
现在-当我按下服务器IP时,我得到了:
欢迎使用nginx!
目前,我仅尝试使用http作为开始。 是否可以使其以IP:port / pagename格式工作?或IP:网页名称? 能否在不同的端口上提供多个应用程序并启用应用程序页面uri工作?
答案 0 :(得分:0)
除了必须将您的.htaccess配置为兼容之外,您还必须使用react-router。示例:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]