1: 安装泛域名解析软件:
sudo apt-get install dnsmasq
配置:
sudo vim /etc/dnsmasq.conf
找到这一行,修改为
resolv-file=/etc/resolv.dnsmasq.conf
sudo cp /etc/resolv.conf /etc/resolv.dnsmasq.conf
然后将/etc/resolv.conf里的DNS改为127.0.0.1
nameserver 127.0.0.1
# 在dnsmasq.d 文件夹下写入文件 jobs.conf:
address=/.dev/127.0.0.1
address=/.qa/218.240.21.105
重启: sudo /etc/init.d/dnsmasq restart
2: 安装nginx
sudo apt-get install nginx
配置nginx文件信息:
upstream jobs {
server 127.0.0.1:8080;
}
server {
listen 80;
server_name localhost;
root /home/zcy/app/jobs/public;
try_files $uri @app;
location @app {
# index index.html index.htm;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
if ($uri ~* ^.*?\.(eot)|(ttf)|(woff)$){
add_header Access-Control-Allow-Origin *;
}
proxy_connect_timeout 180;
proxy_send_timeout 180;
proxy_read_timeout 180;
proxy_buffering on;
proxy_pass http://jobs;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
sudo apt-get install dnsmasq
配置:
sudo vim /etc/dnsmasq.conf
找到这一行,修改为
resolv-file=/etc/resolv.dnsmasq.conf
sudo cp /etc/resolv.conf /etc/resolv.dnsmasq.conf
然后将/etc/resolv.conf里的DNS改为127.0.0.1
nameserver 127.0.0.1
# 在dnsmasq.d 文件夹下写入文件 jobs.conf:
address=/.dev/127.0.0.1
address=/.qa/218.240.21.105
重启: sudo /etc/init.d/dnsmasq restart
2: 安装nginx
sudo apt-get install nginx
配置nginx文件信息:
upstream jobs {
server 127.0.0.1:8080;
}
server {
listen 80;
server_name localhost;
root /home/zcy/app/jobs/public;
try_files $uri @app;
location @app {
# index index.html index.htm;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
if ($uri ~* ^.*?\.(eot)|(ttf)|(woff)$){
add_header Access-Control-Allow-Origin *;
}
proxy_connect_timeout 180;
proxy_send_timeout 180;
proxy_read_timeout 180;
proxy_buffering on;
proxy_pass http://jobs;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
发表评论
-
git相关
2021-03-10 10:41 208分支git rebase 并且push后,再次rebase然后 ... -
url的问题
2020-07-03 16:07 252请求的url是base64,转换后的字符串包含加号,需要CGI ... -
通过链接打开支付宝
2020-06-26 15:40 10921:通过浏览器调用支付宝app来打开网址: alipays: ... -
扫码支付宝直接转账到银行卡
2020-06-09 09:42 1930我们通常扫码支付宝二维码进行支付,通常是支付到支付宝中,其实扫 ... -
rails console 记录命令历史
2020-03-20 10:53 2791: 打开文件: vim ~/.irbrc,添加如下内容: ... -
nmap相关
2020-03-11 18:53 378nmap的输出结果机制是每组数据扫描完就输出结果,通过--mi ... -
softether vpn配置
2020-02-17 17:15 1使用教程网址: https://qiita.com/ask/i ... -
rails离线环境搭建相关命令
2018-12-17 09:35 3851:下载yum包: 环境搭建需要安装很多包,可以使用 yumd ... -
rails离线环境搭建相关命令
2018-12-17 09:35 4021:下载yum包: 环境搭建需要安装很多包,可以使用 yumd ... -
mac 下 python环境搭建(shell是 bash和fish)
2018-11-16 09:30 6221: pyenv安装 1)brew install py ... -
centos
2018-11-01 10:17 402repoquery --whatprovides ... ... -
服务器相关
2017-05-24 10:22 377bundle exec thin start -p 3005 ... -
ubuntu 15.04和16.04切换回upstart
2017-04-26 18:26 841切换到upstart: sudo apt-get i ... -
puma systemd 服务文件
2016-11-02 10:06 581puma.service [Unit] Descriptio ... -
bash_aliases
2016-10-19 18:34 0#alias sudo='sudo env PATH=$PAT ... -
安装双系统 win10 和 ubuntu16.04
2016-07-21 09:29 21021: 安装win10 2: 下载ubuntu ISO镜像 ... -
QQ第三方登陆 和 微信第三方登陆
2016-06-23 12:20 1388QQ第三方登陆 QQ互联注册: http://connect ... -
medusa使用
2016-02-02 11:32 1831medusa:linux下爆破工具,爆破种类很多,主要用来22 ... -
客户端设置163企业邮箱
2015-12-30 15:05 1209提示: pop.qiye.163.com smtp.qiye ... -
通过修改host
2015-08-19 20:37 5打开host文件,把附件内容复制进去就可以了
相关推荐
开源项目-albrow-jobs.zip,A Background Jobs Library for Go (like Sidekiq/Resque/DelayedJob)
grails jobs 定时任务 项目demo
/*oracle jobs 导出为执行脚本 <br> 就是把all_jobs或dba_jobs,导成DBMS_JOB.SUBMIT可以插入job的格式 其中all_jobs是当前用户的job,dba_jobs则是全部 下面只是随便整理了下,可以按照个人需要修改 ...
jobs-lost-jobs-gained-full-report.pdf
赠送jar包:flink-jobs-1.2.0.jar; 赠送原API文档:flink-jobs-1.2.0-javadoc.jar; 赠送源代码:flink-jobs-1.2.0-sources.jar; 赠送Maven依赖信息文件:flink-jobs-1.2.0.pom; 包含翻译后的API文档:flink-jobs...
Make life at the office easier for server administrators by helping them build resilient Ubuntu server systems About This Book Tackle the issues you come across in keeping your Ubuntu server up and ...
赠送jar包:flink-jobs-config-1.2.0.jar 赠送原API文档:flink-jobs-config-1.2.0-javadoc.jar 赠送源代码:flink-jobs-config-1.2.0-sources.jar 包含翻译后的API文档:flink-jobs-config-1.2.0-javadoc-API...
一。& 最经常被用到 这个用在一个命令的最后,可以把这个命令放到后台执行 ...如果后台中有多个命令,可以用 fg %jobnumber将选中的命令调出,%jobnumber是通过jobs命令查到的后台正在执行的命令的序号(不是pid)
赠送jar包:flink-jobs-clients-1.2.0.jar; 赠送原API文档:flink-jobs-clients-1.2.0-javadoc.jar; 赠送源代码:flink-jobs-clients-1.2.0-sources.jar; 赠送Maven依赖信息文件:flink-jobs-clients-1.2.0.pom;...
Acme-Jobs:这是Acme Jobs项目资料库
赠送jar包:flink-jobs-clients-1.2.0.jar 赠送原API文档:flink-jobs-clients-1.2.0-javadoc.jar 赠送源代码:flink-jobs-clients-1.2.0-sources.jar 包含翻译后的API文档:flink-jobs-clients-1.2.0-javadoc-...
steve jobs stanford speech Steve Jobs, CEO of Apple Computer and Pixar addresses the Stanford University graduating class of 2005 at commencement exercises in June.
Acme-Jobs:这是Acme-Jobs项目资料库
quartz-jobs-2.3.0.jar
jobs 分布式任务调度平台
lists presents the best overall jobs–jobs with the highest earnings, projected growth, and number of openings. More specialized lists follow, presenting the best jobs for workers age 16–24, workers ...
amazon-jobs:一些可以帮助我解析并找到有趣的亚马逊求职广告的东西