我在阿里云上弄了个 ftp 服务器,传上去的文件 ftp://123.96.789.131/buyer/1/0/photo_cache100.jpg 可以访问,http 是不行的,我想要用 http 访问,需要怎么做呢?
|
abelyaoAug 31, 2015
1
加个 HTTP 服务器把目录指定到 FTP 相同目录
|
|
abelyaoAug 31, 2015
2
上面有歧义,应该是加个 HTTP 服务
|
|
zixianleiAug 31, 2015
3
要绑定域名吧。。
|
|
alexapolloAug 31, 2015
4
python3 -m http.server
|
|
jimzhongAug 31, 2015
5
装一个 HTTP 服务,比如 lighttpd , apache 等等
最简单的就是 python3 -m http.server |
|
lilydjwgAug 31, 2015
6
|
|
gamexgAug 31, 2015
7
除了上面的操作还需要备案
|
|
br00kAug 31, 2015
8
弄 nginx 吧
|
|
stupilAug 31, 2015
9
现在用的是什么 ?
|
|
zodiac1111Aug 31, 2015
10
webfsd
|
|
12
Welcome to nginx on Fedora!
This page is used to test the proper operation of the nginx HTTP server after it has been installed. If you can read this page, it means that the web server installed at this site is working properly. This is the default index.html page that is distributed with nginx on Fedora. It is located in /usr/share/nginx/html. You should now put your content in a location of your choice and edit the root configuration directive in the nginx configuration file /etc/nginx/nginx.conf. 然后怎么操作呢 |
|
13
Apache Tomcat/8.0.24 安装了, If you're seeing this, you've successfully installed Tomcat. Congratulations!, HTTP 服务器把目录指定到 FTP 相同目录这个怎么操作呢
|
|
14
我在 cd /usr/share/nginx/html 这个目录下面建了一个文件夹 apps ,
然后再这里加了个映射 vi /etc/nginx/nginx.conf location /apps/ { root /var/public_ftp; #alias ; autoindex on; #autoindex_exact_size off; #autoindex_localtime on; } 添加用户和访问权限,然后就 403 了 useradd -d /var/public_ftp -M appImage chown appImage /var/public_ftp chmod 777 -R /var/public_ftp |
|
ys0290Sep 1, 2015 via iPhone
15
web 默认配置啥也不用干,把 ftp 目录软链接到 web 目录下,删掉 index 文件
|
|
17
@ys0290 我查了 403 应该是权限不够,我用 root 用户,然后把 /var/public_ftp 这个目录 /var 都 chmod 777 了 还是报 403.
|
|
tanyuxiangSep 1, 2015 via Android
18
ftp 和 web 统一用一个用户
|