AMH 社区首页
AMH社区 - 开放自由有价值的社区
|
|
---|---|
amysql |
sumawan 发表于 2020-12-28 09:26:31
安装上就好了。 看你上面发的图与2楼配置是有些差别,虚拟主机你是有绑定了域名,打码也看不到。 绑定的目录也不同,默认主页也没有更改。
回复
2021-03-27 18:56:48 31
AMH面板 - 好用高效低占用、安全可靠极稳定 |
海恩没希 |
希望出一个 适用于laravel的安装环境包,或者录个视频。
http://amh.sh/bbs/post-10680-1-1.htm 这个帖子的七楼已经反馈过了。 这个步骤错误怎么办 求大佬 HTTP服务器配置检查 请参考 服务器配置文档 对Web服务器进行配置。 访问 https://lol.weysl.com/install 测试 失败 访问 https://lol.weysl.com 测试 失败 访问 https://lol.weysl.com/notexists 测试 成功 访问 https://lol.weysl.com/api 测试 discuz Q安装的时候,用和这个帖子的教程,http://amh.sh/bbs/post-10680-1-1.htm 这个页面 这几个地址,第二两个,第一个我是知己跳转这个页面我是强行跳过的。 后面还有各种反馈错误,404,即使设置好了伪静态也有问题。
回复
2021-03-29 03:45:07 32
|
amysql |
引用: 是怎么配置的虚拟主机,你也发个虚拟主机页面参数的截图。
回复
2021-03-29 10:18:11 33
|
海恩没希 |
环境是用的主机的web平级目录,(后面改了vhost文件里面的关键路径) 主机设置,基本默认 主机目录结构,使用的是web平级目录,laravel的安装环境需要的public文件夹下所有内容,复制一份到web目录下。 vhost的修改.png 附件文件 1. 主机面板.png (78.52 KB) 2. 主机目录结构.png (134.75 KB) 3. vhost的修改.png (83.02 KB)
回复
2021-03-30 02:14:13 34
|
amysql |
引用: 你也不是按2楼的操作,自己改了主机配置文件,你这样 vhost/name.conf 文件里所有配置目录都要修改的,有几个地方,下面有php配置,也涉及到目录,也需要修改。 要手动改配置也不建议改根目录与web平级,最好是web/public,程序上传到web。
回复
2021-03-30 11:09:33 35
|
amysql |
另外,你改的是vhost/name-https.conf vhost/name.conf 也要修改。 手动改配置后也到amrewrite检测配置正确性,与重启nginx。
回复
2021-03-30 11:11:40 36
|
海恩没希 |
引用: 这个目录的下的都改了
回复
2021-03-30 16:03:36 37
|
amysql |
回复
2021-03-30 17:35:31 38
|
海恩没希 |
Sup_Lite-https.conf(文件名) server { listen 443 http2; #listen end server_name lol.weysl.com; #server_name end index indexindex.html index.htm index.php; #index end set $subdomain ''; root /home/wwwroot/Sup_Lite/domain/Sup_Lite/public$subdomain; include /home/wwwroot/Sup_Lite/rewrite/discuzQ.conf; #rewrite end #error_page error_page 400 /ErrorPages/400.html; error_page 403 /ErrorPages/403.html; error_page 404 /ErrorPages/404.html; error_page 502 /ErrorPages/502.html; location ~ /ErrorPages/(400|401|403|404|405|502|503)\.html$ { root /home/wwwroot/Sup_Lite/domain/Sup_Lite/public; } location ~ ^(.+\.php)(.*)$ { fastcgi_pass unix:/tmp/php-cgi-Sup_Lite-Sup_Lite.sock; fastcgi_index index.php; fastcgi_split_path_info ^(.+\.php)(/.*)$; fastcgi_param PATH_INFO $fastcgi_path_info; include fcgi.conf; fastcgi_param DOCUMENT_ROOT /home/wwwroot/Sup_Lite/domain/Sup_Lite/public$subdomain; fastcgi_param SCRIPT_FILENAME /home/wwwroot/Sup_Lite/domain/Sup_Lite/public$subdomain$fastcgi_script_name; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|mp3|wma)$ { expires 30d; } location ~ .*\.(js|css)$ { expires 12h; } access_log off; #access_log end error_log /dev/null; #error_log end add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;"; #force_ssl end ssl on; ssl_stapling on; resolver_timeout 3s; ssl_ciphers "ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4"; ssl_prefer_server_ciphers on; ssl_session_timeout 10m; ssl_session_cache shared:SSL:10m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_dhparam /home/wwwroot/Sup_Lite/etc/SUP_Lite-ssl/SUP_Lite.pem; ssl_certificate_key /home/wwwroot/Sup_Lite/etc/SUP_Lite-ssl/SUP_Lite.key; ssl_certificate /home/wwwroot/Sup_Lite/etc/SUP_Lite-ssl/SUP_Lite.crt; } Sup_Lite.conf(文件名) server { listen 80; #listen end server_name lol.weysl.com; #server_name end index indexindex.html index.htm index.php; #index end set $subdomain ''; root /home/wwwroot/Sup_Lite/domain/Sup_Lite/public$subdomain; return 301 https://$host$request_uri; #force_ssl end include /home/wwwroot/Sup_Lite/rewrite/discuzQ.conf; #rewrite end #error_page error_page 400 /ErrorPages/400.html; error_page 403 /ErrorPages/403.html; error_page 404 /ErrorPages/404.html; error_page 502 /ErrorPages/502.html; location ~ /ErrorPages/(400|401|403|404|405|502|503)\.html$ { root /home/wwwroot/Sup_Lite/domain/Sup_Lite/public; } location ~ ^(.+\.php)(.*)$ { fastcgi_pass unix:/tmp/php-cgi-Sup_Lite-Sup_Lite.sock; fastcgi_index index.php; fastcgi_split_path_info ^(.+\.php)(/.*)$; fastcgi_param PATH_INFO $fastcgi_path_info; include fcgi.conf; fastcgi_param DOCUMENT_ROOT /home/wwwroot/Sup_Lite/domain/Sup_Lite/public$subdomain; fastcgi_param SCRIPT_FILENAME /home/wwwroot/Sup_Lite/domain/Sup_Lite/public$subdomain$fastcgi_script_name; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|mp3|wma)$ { expires 30d; } location ~ .*\.(js|css)$ { expires 12h; } access_log off; #access_log end error_log /dev/null; #error_log end }
回复
2021-04-03 07:38:42 39
|
crc5201314 |
可笑的AMH,一个教程只有创始人会用,其他的人在看天书
回复
2021-04-03 23:19:11 40
|