React JS Apache FreeBSD build PUBLIC_URL错误

时间:2017-11-12 02:34:18

标签: apache reactjs freebsd

您好我们创建了一个新的FreeBSD服务器进行测试,我们创建了一个实际可以在Ubuntu中运行的反应应用程序。

但是在FreeBSD上我们在浏览器上出现了这个错误:

%PUBLIC_URL%/css/particles.css net::ERR_ABORTED

我们在Ubuntu上获得了相同的配置,但在该服务器中它可以工作:

我们的apache配置(FreeBSD):

<VirtualHost *:80>
        # The ServerName directive sets the request scheme, hostname and port that
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        ServerName our_domain

        ServerAdmin our_email
        DocumentRoot /usr/local/www/apache24/data/react_frontend/public/
        <Directory /usr/local/www/apache24/data/react_frontend/public/>
            Options Indexes FollowSymLinks
            AllowOverride All
            Require all granted
        </Directory>
        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        # ErrorLog ${APACHE_LOG_DIR}/error_impala.log
        # CustomLog ${APACHE_LOG_DIR}/access_impala.log combined
        # RewriteEngine On
        # RewriteCond %{HTTP:X-Forwarded-Proto} !https
        # RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI}
        # Rewrite everything else to index.html to allow html5 state links
        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf
</VirtualHost>

我们缺少什么?

问候。

0 个答案:

没有答案