Comments (2)
后台是一个网页,当然是通过域名打开了(说白了就是通过“网址”打开),网址是什么?你自己定呀。两种方法:
- 如果在本地部署,不是要修改
hosts
文件吗?所以你在hosts
文件里写上:
127.0.0.1 api.picuploader.com
其中这意思就是告诉浏览器,api.picuploader.com
这个“网址”对应的ip是“127.0.0.1”,也就是本机ip(为什么127.0.0.1是本机ip,这是规定的,任何电脑/手机上的127.0.0.1都表示本机)
而现在你部署到了服务器上,你服务器肯定有一个ip吧?假设你服务器ip是23.45.67.78
,那么你只要把hosts文件改成下面这样就ok了:
23.45.67.78 api.picuploader.com
当然,api.picuploader.com
是对应你服务器上nginx配置文件里的server_name
的
- 第1种方法需要你在每台要访问
api.picuploader.com
的电脑上都修改hosts文件并填上上述所说的内容,否则是打不开的。如果你不想这样,那就得注册一个域名,然后在域名注册服务商(比如阿里云)那里是可以指定你的域名对应的ip的,当然域名就不可能是api.picuploader.com
了,比如你注册的域名是example.com
,那你就添加一条www.example.com
的记录,把它指向你服务器的ip23.45.67.78
,并且你服务器的nginx配置文件的server_name
值是www.example.com
就行了。不过注册的域名是要认证也是要花钱的(每年都要交线)。
from picuploader.
好的,谢谢大佬
from picuploader.
Related Issues (20)
- 多个储存 如何选择返回链接 HOT 3
- 请问win7咋弄一件上传功能? HOT 2
- 建议增加obsidian支持 HOT 4
- 搭建了nextcloud,配合Picupload好用 HOT 3
- 快捷键上传之后并没有返回链接 HOT 7
- 希望能添加Lskypro图床 HOT 1
- could not find driver HOT 3
- 关于截图复制自动上传 HOT 1
- 关于添加Nginx密码认证的问题 HOT 6
- 请问可以使用外部数据库吗? HOT 13
- 请问下远端主机被墙的问题 HOT 2
- 无语了 HOT 6
- XX vulnerability in index.php HOT 9
- web版,上传的时候一直显示上传中 HOT 19
- 希望增加unicloud 支持
- Alfred 快捷键上传,curl总是报错 HOT 5
- 腾讯云报毒 HOT 1
- Several SQL injection and file upload vulnerabilities HOT 4
- 支持 AList HOT 2
- 能否支持Telegraph-Image
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from picuploader.