Dns setting problem

Can’t lead to laravel website correctly when I use ouoclub.org domain, but works fine if using IP.

For the domain mentioned, I see a directory listing (“Index of /”), which could indicate a couple of different things, such as e.g. putting the website in the wrong directory, perhaps a sub-directory of your document root.

It could also mean that your document root (e.g. the place where your web server looks for the content of the site) is misconfigured.

Or that the web server is configured to listen only for the IP address, but not the (sub-)domain name(s) you use, and therefore end up on using a default document root, that isn’t exactly where you have placed your files…

In addition to that, most often, you would also have an index file (e.g. index.html, or index.php), however, the sub-directories from your directory listing only has server.php, which could indicate that you may eventually need to either (re-)configure some rewrite rules (or rename server.php), depending on how Laravel want (or expect) their things set up.

In the above scenarios, it wouldn’t actually be an issue on Cloudflare’s end, but an issue with your local configuration.

If the above doesn’t sound like what happens for you, -

Can you then explain (or screenshot) what exactly happens on your end, e.g. error codes/messages you see?

1 Like

Below is what I have set in httpd-vhosts.conf file in xampp

<VirtualHost *:80>
    ServerName localhost
    DocumentRoot "C:\xampp\htdocs\Jebsee\public"
    ServerAdmin localhost

    <Directory "C:\xampp\htdocs\Jebsee">
        Options All
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

<VirtualHost jebsee.ouoclub.org:80>
    ServerName jebsee.ouoclub.org
    DocumentRoot "C:\xampp\htdocs\Jebsee\public"
    ServerAdmin [email protected]

    <Directory "C:\xampp\htdocs\Jebsee">
        Options All
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

When I use the IP, he can normally lead to the “C:\xampp\htdocs\Jebsee\public” website
but when i use jebsee.ouoclub.org he can’t display the website correctly
What should I do?

The configuration you posted does not have any SSL configuration and that’s the issue here. Your server simply is not properly configured. Pause Cloudflare and make sure your site loads fine on HTTPS. Once it does, it will also work on Cloudflare.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.