ubuntu环境下安装Fecmall,apache配置VirtualHost的问题

安装报错 · QiangZh · 于 4年前 发布 · 1314 次阅读

按照“Fecmall-2.x 安装”标准通用教程(标准),在文档中的2.2 apache配置文件中,我的VirtualHost配置如下:

ubuntu apache2.4配置文件路径:/etc/apache2/sites-available/000-default.conf ServerName localhost ServerAlias localhost DocumentRoot "/var/www/html/"

Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted

ServerName appadmin.fecshoptest.com ServerAlias fecshoptest DocumentRoot "/var/www/html/fecmall/appadmin/web" Options +Includes +FollowSymLinks +MultiViews AllowOverride All Require all granted

hosts配置(文件路径/etc/hosts): 127.0.0.1 localhost 192.168.0.200 appfront.usertest.com 192.168.0.200 appadmin.admintest.com 192.168.0.200 img.imgtest.com 192.168.0.200 apphtml5.htmltest.com 192.168.0.200 appserver.servertest.com 192.168.0.200 appapi.apitest.com

The following lines are desirable for IPv6 capable hosts

::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters

这两个文件设置好之后,service apache2 restart命令重启apache。 浏览器访问时,出现的问题: 1、URL:http://appfront.usertest.com/fecmall/appfront/web/install.php 无法访问 无法访问此网站 找不到 appfront.usertest.com 的服务器 IP 地址。

2、将URL中的appfront.usertest.com修改为本地ip就可以访问到安装界面 URL:http://192.168.0.200/fecmall/appfront/web/install.php 可以访问

共收到 3 条回复 问题提问
qy11712#14年前 0 个赞

ServerName appadmin.fecshoptest.com ServerAlias fecshoptest DocumentRoot "/var/www/html/fecmall/appadmin/web"

你是只设置了appadmin这个网站啊 还要设置appfront的,DocumentRoot "/var/www/html/fecmall/appfrfront/web" 访问安装是http://appfront.usertest.com/install.php 这个网址

QiangZh#24年前 0 个赞

@qy11712 #1楼 都是有设置的,和安装教程一模一样的配置,为啥就不行。求指导! hosts配置: 127.0.0.1 localhost 192.168.0.200 appfront.fecshoptest.com 192.168.0.200 appadmin.fecshoptest.com # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters httpd-vhosts.conf配置: ServerName localhost ServerAlias localhost DocumentRoot "/var/www/html"

Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local

ServerName appadmin.fecshoptest.com ServerAlias fecshoptest DocumentRoot "/var/www/html/fecmall/appadmin/web" Options +Includes +FollowSymLinks +MultiViews AllowOverride All Require local ServerName appfront.fecshoptest.com ServerAlias fecshoptest DocumentRoot "/var/www/html/fecmall/appfront/web" Options +Includes +FollowSymLinks +MultiViews AllowOverride All Require local
Fecmall#34年前 0 个赞

1.先看一下: http://www.fecmall.com/topic/624

http://www.fecmall.com/markdown

整理好你的帖子。

2.关于apache,这里有一个宝塔apache的配置:http://www.fecmall.com/doc/fecshop-guide/instructions/cn-2.0/guide-fecmall-bt-apache-install.html

在文档的最底部有一个apache的配置

另外wamp里面也有apache的配置例子:http://www.fecmall.com/doc/fecshop-guide/develop/cn-2.0/guide-fecshop-2-3-about-wamp-install.html

您参阅一下

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics