I downloaded the sample code "tutorial-master".
I am using debian 7. I have enabled mod_rewrite for apache. Then I edit file /etc/apache2/sites-available/default to setup a virtual directory pointing to"tutorial-master/public" folder like following:
<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot /var/www
    <Directory />
        Options FollowSymLinks
        AllowOverride All
    </Directory>
    <Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>
    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        AllowOverride All
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
    </Directory>
    Alias /tutorial/ /home/xyz/Documents/Projects/tutorial-master/public/
    <Directory "/home/xyz/Documents/Projects/tutorial-master/public">
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log
    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>Then I go to https://localhost/tutorial/, it shows:
Hello!
Sign Up Here!When I click link "Sign Up Here!", I get the 404 error:
Not Found
The requested URL /home/xyz/Documents/Projects/tutorial-master/public/index.php was not found on this server.Because the source code is downloaded from Phalcon, it should not have problem. I think it's something wrong with my apache configuration. Please advise. Thanks.