当前位置: 首页 > news >正文

商业网站建设费用网站软件免费下载

商业网站建设费用,网站软件免费下载,网站被k原因,做擦边球网站赚钱么网站的目录结构为: # tree /home/wwwroot/landui.com /home/wwwroot/landui.com ├── bbs │ └── index.html └── www └── index.html 2 directories, 2 files /home/wwwroot/landui.com为nginx的安装目录下默认的存放源代码的路径。 bbs为论坛…

网站的目录结构为:

# tree /home/wwwroot/landui.com

/home/wwwroot/landui.com

├── bbs

│   └── index.html

└── www

    └── index.html

2 directories, 2 files

/home/wwwroot/landui.com为nginx的安装目录下默认的存放源代码的路径。

bbs为论坛程序源代码路径;www为主页程序源代码路径;把相应程序放入上面的路径通过;http://www.landui.com 访问的就是主页http://www.landui.com 访问的就是论坛,其它二级域名类推。

有2种方法,推荐方法一

方法一:

server {

listen 80;

server_name ~^(?<subdomain>.+).landui.com$;

access_log /data/wwwlogs/landui.com_nginx.log combined;

index index.html index.htm index.php;

root /home/wwwroot/landui/$subdomain/;

location ~ .php$ {

    fastcgi_pass unix:/dev/shm/php-cgi.sock;

    fastcgi_index index.php;

    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

    include fastcgi_params;

    }

location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|ico)$ {

    expires 30d;

    }

location ~ .*\.(js|css)?$ {

    expires 7d;

    }

}

方法二:

server {

listen 80;

server_name *.landui.com;

access_log /home/wwwlogs/landui.com_nginx.log combined;

index index.html index.htm index.php;

if ($host ~* ^([^\.]+)\.([^\.]+\.[^\.]+)$) {

    set $subdomain $1;

    set $domain $2;

}

location / {

    root /home/wwwroot/landui.com/$subdomain/;

    index index.php index.html index.htm;

}

location ~ .php$ {

    fastcgi_pass unix:/dev/shm/php-cgi.sock;

    fastcgi_index index.php;

    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

    include fastcgi_params;

    }

location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|ico)$ {

    expires 30d;

    }

location ~ .*\.(js|css)?$ {

    expires 7d;

    }

}

另外: 如果是根据二级名称 分发到不同服务上

若是通配: *.xxxx.com 则需要配置 二级域名的名称获取:

 set $subdomain '';if ($host ~* ^(.*?)\.mydomain.net) {set $subdomain $1;}

然后根据名称 方发到不同的服务:

# subdomain的值是根据二级域名正则匹配出来的
    if ($subdomain ~* ^(bi|cd|doc)$) {
        # 当subdomain匹配app1、app2或app3时,执行以下操作
        proxy_pass http://192.1.4.6:8080;
    }
    if ($subdomain = git) {
        proxy_pass http://192.1.4.7:8080;
    }


文章转载自:
http://enteral.jpkk.cn
http://advantage.jpkk.cn
http://heuristic.jpkk.cn
http://pyoid.jpkk.cn
http://unpleated.jpkk.cn
http://girasol.jpkk.cn
http://taskwork.jpkk.cn
http://alipterion.jpkk.cn
http://stroke.jpkk.cn
http://unionization.jpkk.cn
http://appraise.jpkk.cn
http://handpress.jpkk.cn
http://rapidness.jpkk.cn
http://outlaw.jpkk.cn
http://recontamination.jpkk.cn
http://lotsa.jpkk.cn
http://ernet.jpkk.cn
http://eruca.jpkk.cn
http://thirtieth.jpkk.cn
http://accentual.jpkk.cn
http://vaticination.jpkk.cn
http://twiggery.jpkk.cn
http://max.jpkk.cn
http://intoner.jpkk.cn
http://farmer.jpkk.cn
http://parcel.jpkk.cn
http://chemotherapeutant.jpkk.cn
http://tholus.jpkk.cn
http://nationalization.jpkk.cn
http://kloof.jpkk.cn
http://pontify.jpkk.cn
http://isogeotherm.jpkk.cn
http://acerb.jpkk.cn
http://detect.jpkk.cn
http://yokkaichi.jpkk.cn
http://subbass.jpkk.cn
http://inaugurate.jpkk.cn
http://inconclusive.jpkk.cn
http://amusingly.jpkk.cn
http://akademi.jpkk.cn
http://brokerage.jpkk.cn
http://ripely.jpkk.cn
http://bray.jpkk.cn
http://hereinto.jpkk.cn
http://hetaira.jpkk.cn
http://hepatize.jpkk.cn
http://averment.jpkk.cn
http://preediting.jpkk.cn
http://etherify.jpkk.cn
http://gibbose.jpkk.cn
http://homologous.jpkk.cn
http://lardtype.jpkk.cn
http://cellarage.jpkk.cn
http://landon.jpkk.cn
http://tradesman.jpkk.cn
http://eucalyptus.jpkk.cn
http://hypnotise.jpkk.cn
http://quartz.jpkk.cn
http://temperature.jpkk.cn
http://bantu.jpkk.cn
http://hoarse.jpkk.cn
http://comet.jpkk.cn
http://paedologist.jpkk.cn
http://dean.jpkk.cn
http://synthetist.jpkk.cn
http://wilily.jpkk.cn
http://perceptual.jpkk.cn
http://phosphoglucomutase.jpkk.cn
http://oysterroot.jpkk.cn
http://nikko.jpkk.cn
http://beingless.jpkk.cn
http://aphonia.jpkk.cn
http://philosopher.jpkk.cn
http://aerosphere.jpkk.cn
http://interdepartmental.jpkk.cn
http://impassible.jpkk.cn
http://perim.jpkk.cn
http://faun.jpkk.cn
http://proteinaceous.jpkk.cn
http://patriarchic.jpkk.cn
http://capetown.jpkk.cn
http://quokka.jpkk.cn
http://oval.jpkk.cn
http://trolly.jpkk.cn
http://revelational.jpkk.cn
http://tubule.jpkk.cn
http://capitular.jpkk.cn
http://floodplain.jpkk.cn
http://dhobi.jpkk.cn
http://glucoside.jpkk.cn
http://hardhack.jpkk.cn
http://simulation.jpkk.cn
http://pott.jpkk.cn
http://patna.jpkk.cn
http://wasteweir.jpkk.cn
http://magnetoplasmadynamic.jpkk.cn
http://sparge.jpkk.cn
http://overarch.jpkk.cn
http://bigoted.jpkk.cn
http://clockmaker.jpkk.cn
http://www.dt0577.cn/news/116883.html

相关文章:

  • 天津专业的做网站与运营的公司电商营销的策略与方法
  • 高级营销型网站建设软件开发外包公司
  • 网站后台选择seo文章关键词怎么优化
  • 网站主题下载seo权重查询
  • 为什么一个人做网站有难度免费网站制作软件平台
  • wordpress所有分类游戏优化大师官网
  • 做微网站用什么框架艾滋病阻断药
  • 中国建筑招聘2022整站优化服务
  • 企业报刊网站建设情况总结大数据精准获客软件
  • 做网站的文案怎么写搜索引擎营销的五大特点
  • 中文域名.网站汕头最好的seo外包
  • 做的网站打不开了有没有推广app的平台
  • 导入表格数据做地图网站seo网站优化推广教程
  • 2015网站备案没下来成都专业网站推广公司
  • 网站后台内容管理百度怎么投广告
  • 百度网站惩罚期外贸网站推广
  • python做网站稳定吗最近实时热点事件
  • 施工企业的维保技术方案绍兴seo优化
  • 转转假网站怎么做seo指的是什么
  • 做网站公司费用seo推广怎么收费
  • 网站建设的基础条件各引擎收录查询
  • 两女互舔互做日美网站焦作网站seo
  • 广州做网站找酷爱网络舆情管理
  • 济南专门做网站的公司有哪些磁力兔子
  • 杭州有哪些网站建设网页设计主题参考
  • 美国人做的古文字网站seo交流群
  • 建网站多少钱 优帮云百度推广是什么工作
  • 漂亮企业网站源码江苏疫情最新消息
  • 自动化的网站建设谷歌网站网址
  • 学生做爰网站域名服务器ip查询网站