Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5049

Configure apache virtual host with angular app

$
0
0

I ran into a snag where my website's home page will only display the "index of/" page instead of my angular app, or even just an index.html. I'm not sure what's causing this because the vhost config is nearly identical to the three other websites running smoothly on the same server. Apache was restarted and then it quit serving the angular app.

config:

<VirtualHost *:80>

    ServerName website.com
    ServerAlias www.website.com
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html/website.com/dist

    <Directory /var/www/html/website.com/dist>
        <Files ~ (\.cgi$)>
            SetHandler cgi-script
            Options ExecCGI
            allow from all
        </Files>
        Options -Indexes +FollowSymLinks +MultiViews
        AllowOverride All
        Require all granted
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

It's been a while since I initially set this up and with many recent changes trying to get it to work again I main have some silly mess ups I'm overlooking. Any tips or advice is appreciated!


Viewing all articles
Browse latest Browse all 5049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>