/** * Created by Wwei on 2016/9/1.*/Ext.define (' Admin.view.photo.CADMultiUploadForm ', {extend:' Ext.window.Window ', Xtype:' Cadmultiuploadform ', Title:' CAD upload ', requires: [' Admin.view.photo.CADMultiUploadFormController ', ' Ext.form.Panel ', ' Ext.form.field.ComboBox ', ' Ext.form.field.Text ', ' Ext.form.field.TextArea ', ' Ext.layout.container.Fit '], layout:' Fit ', modal:true, Height:200, Width:370, Controller:' Cadmultiuploadform ', items: [{flex:1, Xtype:' Form ', reference:' Form ', Modelvalidation:true, defaults: {labelalign:' Left ', margin:10, Msgtarget:' Side '}, items: [{xtype:' Panel ', HTML:' <iframe frameborder=0 width=660 height=570 marginheight=0 marginwidth=0 scrolling=no src= '/http 192.168.1.135:8888/multiuploadcad.html "> ' + ' </iframe> '}]}], buttons: [{text:Cancel, Handler:' CloseWindow ' }]});
Nginx.conf
#运行用户 #user nobody; #开启进程数<=cpuNumber worker_processes 1; #错误日志保存位置 #error_log logs/error.log; #error_log logs/error.log notice; #error_log Logs/error.log in fo; #进程号保存文件 #pid logs/nginx.pid; #等待事件events {worker_connections 1024;} HTTP {#文件扩展名与文件类型映射表 include mime.types; #默认文件类型 Default_type Application/octet-stream; #日志文件输出格式 This position is equivalent to the global setting #log_format main ' $remote _addr-$remote _user [$time _local] "$request" ' # ' $status $body _bytes_sent "$http _referer" ' # ' "$http _user_agent" $http _x_forwarded_for "; #请求日志保存位置 #access_log Logs/access.log Main; #打开发送文件 sendfile on; #tcp_nopush on; #keepalive_timeout 0; Keepalive_timeout 65; #打开gzip压缩 #gzip on; #第一个虚拟主机 server {#监听IP端口 listen 8888; #主机名 server_name http://192.168.1.135; #设置字符集 #charset Koi8-r; #本虚拟server的访问日志 is equivalent to a local variable #access_log logs/host.access.log main; Location/{root E:\idea_project\BaiSheng_Model\fin-upload\MultiUpload; Index multiuploadcad.html multiuploadpicture.html success.html; } #error_page 404/404.html; # REDIRECT Server error pages to the static page/50x.html # Error_page 502 503 504/50x.html; Location=/50x.html {root HTML; } # Proxy The PHP scripts to Apache listening on 127.0.0.1:80 # #location ~ \.php$ {# ProX Y_pass http://127.0.0.1; #} # Pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # #location ~ \.php$ { # root HTML; # Fastcgi_pass 127.0.0.1:9000; # Fastcgi_index index.php; # Fastcgi_param Script_filename/scripts$fastcgi_script_name; # include Fastcgi_params; #} # Deny access to. htaccess files, if Apache ' s document Root # concurs with Nginx ' s one # #l ocation ~/\.ht {# deny all; #}} # Another virtual host using mix of ip-, name-, and port-based configuration # #server {# listen 8000; # Listen somename:8080; # server_name somename alias Another.alias; # location/{# root HTML; # indexIndex.html index.htm; #} #} # HTTPS Server # #server {# listen 443 SSL; # server_name localhost; # ssl_certificate Cert.pem; # Ssl_certificate_key Cert.key; # Ssl_session_cache shared:ssl:1m; # ssl_session_timeout 5m; # ssl_ciphers high:!anull:! MD5; # ssl_prefer_server_ciphers on; # location/{# root HTML; # index index.html index.htm; # } #}}
EXTJS6 embedded Iframe,nginx Deploy local foreground file