How to properly configure Apache to serve Taiga frontend distribution files

My current setup:

I’ve been working on setting up Taiga for the past couple of days. The backend installation is complete and working fine. When I test with curl localhost:8000/api/v1/ everything works correctly, but using my public IP results in connection errors.

Now I need help with the frontend configuration. The documentation mentions that I should expose the dist folder through a static web server.

I’m running this on a CentOS 6.5 VPS using Apache as my web server.

I created a configuration file at /etc/httpd/conf.d/taiga-frontend.conf with these settings:

<VirtualHost *:9000>
    ServerName myserver
    ServerAdmin admin@example.com
    DocumentRoot /home/taiga/taiga-frontend-dist/dist/
    ErrorLog logs/taiga_frontend_error_log
    <Directory "/home/taiga/taiga-frontend-dist/dist/">
            Options Indexes ExecCGI FollowSymLinks
            Order allow,deny
            Allow from all
            AllowOverride all
    </Directory>
</VirtualHost>

However, when I navigate to myip:9000, nothing loads - no index.html or any content appears.

My main question is: how can I properly configure Apache to serve the frontend files on this port?

Any assistance would be greatly appreciated.

Thanks!

Your configuration looks mostly correct, but I recommend checking a few things. Run httpd -t to ensure Apache is loading your virtual host without any syntax errors. It’s advisable to remove the ExecCGI option from your Directory block, as it’s unnecessary for serving static files and might introduce issues. Ensure that the directory /home/taiga/taiga-frontend-dist/dist/ contains an index.html file and that Apache has permission to read it. Since the backend functions correctly on localhost but not via your public IP, it suggests a potential networking issue. Verify that your VPS provider isn’t blocking port 9000 and check that your security groups or network ACLs are configured correctly.

did u restart apache after that config? also, make sure apache is listening on port 9000. you might need Listen 9000 in httpd.conf. check the error logs too when trying to access it. could help.

maybe check if the firewall is blocking port 9000? also, make sure apache has the right permissions for that dist folder. try running chmod -R 755 on it so apache can read the files.