你能帮我实现以下
我希望http://bla.domain.com指向下面的链接。
http://bla.example.com:4321/?nick=Nick.....&&channels=Bulgaria%2CSofia%2Csex%2C30-40&prompt=1&uio=OD1mYWxzZSY5PXRydWUmMTI9dHJ1ZQf0&prompt=1
我跟着原来的nginx的东西 – > https://www.nginx.com/resources/wiki/start/topics/recipes/qwebirc/
在目前index.html没有呈现,因为我想要它或更好的洞链接指向http://bla.domain.com
你可以查看下面我所做的conf至今。
server { server_name bla.example.com; location / { autoindex on; autoindex_exact_size off; root /home/user/qwebirc/; index index.html; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_buffering off; proxy_pass http://127.0.0.1:4321; } #location / { # autoindex on; # autoindex_exact_size off; # root /home/user/qwebirc/; # index index.html; # try_files $uri $uri/ @proxy; #} #location @proxy { # proxy_set_header X-Real-IP $remote_addr; # proxy_set_header Host $host; # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # proxy_buffering off; # proxy_pass http://127.0.0.1:4321; #} location ~* \.php$ { #include fastcgi.conf # I include this in http context, it's just here to show it's required for fastcgi! try_files $uri =404; # This is not needed if you have cgi.fix_pathinfo = 0 in php.ini (you should!) fastcgi_pass 127.0.0.1:9000; } ### Logs ### access_log /var/log/nginx/example.com.access.log; error_log /var/log/nginx/example.com.error.log; }
请记住,我试图运行它与评论的东西,而不是现在的工作。
下面还有index.html位于/ home / user / qwebirc /
<html lang="en" class="no-js"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1.0"> <style> html body {width: 100%;height: 100%;padding: 0px;margin: 0px;overflow: hidden;font-family: arial;font-size: 10px;color: #6e6e6e;background-color: #000;} #preview-frame {width: 100%;background-color: #fff;}</style> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <script> var calcHeight = function() { $('#preview-frame').height($(window).height()); } $(document).ready(function() { calcHeight(); }); $(window).resize(function() { calcHeight(); }).load(function() { calcHeight(); }); </script> </head> <body> <iframe id="preview-frame" src="http://bla.example.com/?nick=Nick.....&&channels=Bulgaria%2CSofia%2Csex%2C30-40&prompt=1&uio=OD1mYWxzZSY5PXRydWUmMTI9dHJ1ZQf0&prompt=1" name="preview-frame" frameborder="0" noresize="noresize"> </iframe> </body> </html>