如何从地址栏隐藏端口8080? 当我打电话给我的sub.domain.com时,除了当我打电话给sub.domain.com:8008我得到了申请时,我什么也得不到! 我正在使用apache2和jboss 7
由于
<virtualhost *:80>
ServerName sub.domain.com
ServerAlias sub.domain.com
<Location /myapp>
Order deny,allow
Allow from all
Options -Indexes FollowSymLinks
ProxyPass http://127.0.0.1:8080/myapp
ProxyPassReverse http://127.0.0.1:8080/myapp
</Location>
DirectoryIndex index.html index.htm index.php index.asp index.aspx index.jsp index.jspa index.shtml index.shtm
</virtualhost>
答案 0 :(得分:2)
只需将此配置复制并通过您的网站启用
$('#response_title').val('');
$("#response_new_enter").hide();
$("#response_own_enter").show();
img.attr("src","images/add_btn.png");
var options = $('#response_').attr('options');
options[options.length] = new Option(response_title, r, true, true); // error comes up in this line
alert("New Response Added Successfully.");
$("#myspan").html("New Response Added Successfully.");
$("#myspan").show();
setTimeout(function(){ $('#myspan').fadeOut(1000); }, 10000);
答案 1 :(得分:0)
你可以从地址栏隐藏端口,尝试使用端口80启动服务器,你可以更改standalone.xml文件
<socket-binding name="http" port="80"/>