Skip to content

It works with built-in server but getting 404 errors on apache virtual host #1069

Closed
@joaopmmartins

Description

@joaopmmartins

On the Symphony's built-in server, the demo works perfectly well but when I try with Apache virtual host, I can only view the homepage. For every other page, I am getting a 404 error.

<VirtualHost *:80>
	ServerAdmin webmaster@localhost
	ServerName my-local-site
	ServerAlias my-local-site
   	DocumentRoot /home/websites/my-local-site/public
	<Directory "/home/websites/my-local-site/public">
             Options Indexes FollowSymLinks MultiViews
             AllowOverride All
            Require all granted
        </Directory>
	CustomLog "|/usr/bin/rotatelogs -l /var/log/apache2/my-local-site-access.%Y-%m-%d 86400" common
	ErrorLog "|/usr/bin/rotatelogs /var/log/apache2/my-local-site-error.%Y-%m-%d 5M"
</VirtualHost>

Can you please point me in the right direction? Many thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions