您好我想使用Apache2部署我的网站,我的域名是www.hew-automation.be。我已经从此域名链接到我服务器的IP地址(http://91.183.84.209:8080/)。我想摆脱端口8080并停止在浏览器中显示IP地址。
我安装了apache2,在/etc/apache2/sites-available/odoo.conf中添加了以下内容:
<VirtualHost *:80>
ServerName hew-automation.be
ServerAlias *.hew-automation.be // Use this if you want dbfillter on subdomain
ErrorLog /var/log/odoo/odoo-error.log
CustomLog /var/log/odoo/odoo-access.log combined
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyRequests Off
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
ProxyVia On
LogLevel warn
</VirtualHost>
然后用a2ensite启用它,这没有任何错误。
这是我的/etc/odoo-server.conf文件:
[options]
admin_passwd = XXXX
db_host = False
db_port = False
db_user = XXXX
db_password = XXXX
addons_path = /opt/odoo/addons
logfile = /var/log/odoo/odoo-server.log
xmlrpc_port = 8068
现在每当我浏览我的IP地址http://91.183.84.209/时,它总是显示Apache2的默认页面,我在这里做错了什么?
感谢。