wzxjohn / moeSS

moe SS Front End for https://github.com/mengskysama/shadowsocks/tree/manyuser
https://ss.qaq.moe
GNU General Public License v3.0
303 stars 107 forks source link

没有后台管理面板的地址? #46

Open travelbob2005 opened 8 years ago

travelbob2005 commented 8 years ago

没有后台管理面板的地址?

travelbob2005 commented 8 years ago

安装成功,前台页面有,后台管理地址是哪个?找不到。

wzxjohn commented 8 years ago

/admin 呀 On Sun, 19 Jul 2015 at 17:15 travelbob2005 notifications@github.com wrote:

安装成功,前台页面有,后台管理地址是哪个?找不到。

— Reply to this email directly or view it on GitHub https://github.com/wzxjohn/moeSS/issues/46#issuecomment-122641288.

travelbob2005 commented 8 years ago

下载下来的文件/admin子目录,木有啊

travelbob2005 commented 8 years ago

qq 20150720144047

哪里有啊

jiachenwang commented 8 years ago

是MVC架构的,在views的admin里面有管理用户的php。 只需要https://ip/admin就能跳转到https://ip/admin/login.php了。

travelbob2005 commented 8 years ago

qq 20150721090331

qq 20150721090747

https://ip/admin 还是 https://ip/view/admin ? 都不行,看截图

travelbob2005 commented 8 years ago

qq 20150721093514

jiachenwang commented 8 years ago

是http://ip/admin/login.html(http://ip/admin/也可以)。

按照教程:https://github.com/wzxjohn/moeSS/wiki/Apache-Config-Guide 一定要调“ AllowOverride All” /etc/apache2/sites-enabled/000-default" <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all

travelbob2005 commented 8 years ago

好的,多谢,去看一下,这个面板程序里面带套餐管理吗?

travelbob2005 commented 8 years ago

qq 20150722013259

管理员登录出现这个状况,一直停留在这个页面不动了

jiachenwang commented 8 years ago

我也卡在这个界面了,发了一个issue。

可以看到apache返回的login.html是404…

On Jul 22, 2015, at 01:38, travelbob2005 notifications@github.com wrote:

管理员登录出现这个状况,一直停留在这个页面不动了

— Reply to this email directly or view it on GitHub.

Tinysin commented 8 years ago

这个简单,刷新一下就进去了,bug存在半年了。

tinysin

发件人: travelbob2005 发送时间: 2015-07-22 01:38 收件人: wzxjohn/moeSS 主题: Re: [moeSS] 没有后台管理面板的地址? (#46) 管理员登录出现这个状况,一直停留在这个页面不动了 — Reply to this email directly or view it on GitHub.

travelbob2005 commented 8 years ago

不行,刷新了正在登陆字样没了,还是停留回登陆界面

wzxjohn commented 8 years ago

@Tinysin 其实这好像并不是我程序的 Bug 而是 Apache 安装时候设置问题导致的 Bug 。。。因为在我自己的 Apache 环境里完全没有问题,不过很多用 LAMP 之类的一键包安装的就会出现这个问题。

travelbob2005 commented 8 years ago

@wzxjohn 请问下,这个面板管理程序里面带套餐管理吗?

wzxjohn commented 8 years ago

@travelbob2005 不带,免费版本不带任何支付之类的功能。不过近期我要整体修改程序,到时候可能会加入。自己挖的坑含着泪也要填了=。=

travelbob2005 commented 8 years ago

@wzxjohn 收费版有吗?我说的套餐管理不善支付,是管理帐号的到期,流量, 等管理功能

wzxjohn commented 8 years ago

@travelbob2005 因为我这个系统只做了按流量计费,所以没有加账号到期这个功能,但是可以编辑账号的任何一个字段,比如流量之类的。

travelbob2005 commented 8 years ago

@wzxjohn 多谢答复,期待帐号到期功能,什么原来能实现帐号到期功能?

travelbob2005 commented 8 years ago

打错了,什么原理能实现帐号到期功能?实际是ss端口到期吧。。。

wzxjohn commented 8 years ago

@travelbob2005 其实我并没有设计账号到期功能,因为 SS 一般都是按流量收钱,那么账号到期意义就不大了=。=不过在我把现有的 Bug 修完重构系统之后应该会加入这个功能的。

travelbob2005 commented 8 years ago

@wzxjohn 好,很期待

LetMeDecay commented 8 years ago

好像正是因为你用的是这个架构的,无法使用nginx反代,必须要用apache的前端。nginx配置我弄了好久都没弄成,最后只好放到一个很卡的vps了

wzxjohn commented 8 years ago

@Dk2048 不不不,当然可以用 Nginx 。很多人已经用 Nginx 成功了。只不过 Nginx 需要自己手动写一下重定向规则罢了。或者直接用 Nginx 反代后端的Apache 也可以的。

LetMeDecay commented 8 years ago

我用wiki里面的规则会直接404,用nginx反代也是404,不是用的lnmpa。

travelbob2005 commented 8 years ago

后台一直登陆中这个问题无法解决了木?

jiachenwang commented 8 years ago

解决了: 然后请确定你的 Apache 开启了 mod_rewrite 模块!否则会导致登陆页面不跳转的问题。

开启命令一般为

a2enmod rewrite

链接:https://github.com/wzxjohn/moeSS/wiki/Apache-Config-Guide

travelbob2005 commented 8 years ago

@2130qwer 多谢,现在又碰到一个问题,不知道怎么搞 .htaccess,我程序是放在子目录下 htaccess 中的 RewriteBase / 怎么改,后面加了子目录,打开网站,反倒没权限访问了。。。

jiachenwang commented 8 years ago

试试这个(不保证能成功):

Options -Indexes

``` RewriteEngine On RewriteBase / # Redirect users to HTTPS site. # If your site have https, uncomment these lines. # RewriteCond %{HTTPS} !=on # RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [L,R] ### Canonicalize codeigniter URLs # If your default controller is something other than # "welcome" you should probably change this RewriteRule ^(welcome(/index)?|index(\.php)?)/?$ / [L,R=301] RewriteRule ^(.*)/index/?$ $1 [L,R=301] # Removes trailing slashes (prevents SEO duplicate content issues) RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)/$ $1 [L,R=301] # Enforce www # If you have subdomains, you can add them to # the list using the "|" (OR) regex operator #RewriteCond %{HTTP_HOST} !^(www|subdomain) [NC] #RewriteRule ^(.*)$ http://www.domain.tld/$1 [L,R=301] # Enforce NO www #RewriteCond %{HTTP_HOST} ^www [NC] #RewriteRule ^(.*)$ http://domain.tld/$1 [L,R=301] ### # Removes access to the system folder by users. # Additionally this will allow you to create a System.php controller, # previously this would not have been possible. # 'system' can be replaced if you have renamed your system folder. RewriteCond %{REQUEST_URI} ^system.* RewriteRule ^(.*)$ /index.php/$1 [L] # Checks to see if the user is attempting to access a valid file, # such as an image or css document, if this isn't true it sends the # request to index.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] ```

<IfModule !mod_rewrite.c>

# Without mod_rewrite, route 404's to the front controller
ErrorDocument 404 /index.php

travelbob2005 commented 8 years ago

@2130qwer 哎,还是不行。。。

travelbob2005 commented 8 years ago

qq 20150803001907

wzxjohn commented 8 years ago

@travelbob2005 RewriteBase 改成 /子目录名/

travelbob2005 commented 8 years ago

@wzxjohn @2130qwer 多谢二位,根据提示,仔细阅读,终于解决!用户后台里可以以后会添加充值功能?

travelbob2005 commented 8 years ago

@wzxjohn @2130qwer 有没有办法限制一个端口只允许一个ip连接?目的是不能让同一个帐号给多个人用,搜了iptables的用法,是限制连接数的,在tcp层做的限制,不是ip层,一个ip可以有很多tcp连接数,所以,没用,有好的办法么?

jiachenwang commented 8 years ago

最好的解决方案是在manyuser的代码里改……

然而我觉得既然限制了流量,按流量收费,就没必要限制登录数了吧

另外NAT环境下,不太容易辨识一个端口有几个ip连接

netstat结合 cut、sed可以看到一个端口的ip连接数,如:netstat -an | grep 8989 | grep ESTABLISHED | wc -l http://zhihu.com/question/27526279/answer/50202310

travelbob2005 commented 8 years ago

明白,一般用户都会觉得按流量不爽,要不限流量,按月,虽然实际一个月下来极端的用户也用不了多少G的流量。。。。

jiachenwang commented 8 years ago

不限流量,确实目前没有很好的解决方案(至少没有公开)。 像是红杏一类的插件,倒是可以做到

travelbob2005 commented 8 years ago

关键就是能否限制一个端口同一时间只能被一个ip连接

ohyeah521 commented 8 years ago

@travelbob2005 这个可以做到的

travelbob2005 commented 8 years ago

@ohyeah521 ,我也找到方案了,但是有没有可以任意设置被两个或者多个ip连接呢?

ghost commented 8 years ago

请问收费版费用是多少,我感觉不错。想买来玩玩。