Support the ongoing development of Laravel.io →
Laravel Configuration Installation

I've installed Laravel 5 on CentOS 7 with ease. Made .htaccess changes and and generated application key. My .conf file is like this:

<VirtualHost *:80>
    ServerName mydomain.com
    DocumentRoot "/var/www/html/laravel/public"
    ServerAlias www.mydomain.com
    ServerAdmin x@localhost

    <Directory "/var/www/html/laravel">
            Options Indexes FollowSymLinks MultiViews
            AllowOverride All
            Require all granted
    </Directory>
</VirtualHost>

But when i try to open it via www.mydomain.com it opens Apache Testing 123.. page. And when i try www.mydomain.com/laravel/public, i can see default laravel page.

What am i missing?

Last updated 2 years ago.
0

comment all config lines in /etc/httpd/conf/httpd.conf and then restart apache systemctl restart httpd

0

Sign in to participate in this thread!

Eventy

Your banner here too?

YSFKBDY ysfkbdy Joined 19 Apr 2018

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.