kinoli / craft-bootstrap-sass-vue-boilerplate

The all encompassing boilerplate to get you going quickly with CraftCMS/Bootstrap/Sass/Vue.js and more.
14 stars 2 forks source link

Localhost domain .test not working with dev or public html folders #2

Open ardian-c opened 5 years ago

ardian-c commented 5 years ago

Hi,

I have been trying to add a local domain to my craft site to point to the /dev or /public_html folder but each time a blank page keeps showing, with the following message server IP address could not be found. . If I point my domain to any other folder it works fine. I tried removing the .htaccess file content in each folder but with no success. I'd be grateful if you can lead me to a solution for this issue.

kinoli commented 5 years ago

Are you running yarn dev?

ardian-c commented 5 years ago

Yes, I have yarn dev running. The virtual host files points to valid folder and .hosts file has the correct .test domain. I know that the virtual host is fine since I tested with other folders in that directory.

kinoli commented 5 years ago

I just ran through the installation steps and it all worked fine for me. Can you try setup again?

Also, try commenting out line 12 in your dev/.htaccess file

kinoli commented 5 years ago

Are you running mamp and installing craft with mysql?

ardian-c commented 5 years ago

I did try removing all .htaccess content without success. However, when first installed I remember I didn’t opt for local domain, instead I used the localhost path. Could that cause the issue? I am using laragon with mysql.

Tried installing everything by creating a new project, and the same issue is still present:

Here is my craftkinoli.test file:

<VirtualHost *:80> 
    DocumentRoot "D:/laragon/www/learn/craftcms/craft-kinoli/dev"
    ServerName craftkinoli.test
    ServerAlias *.craftkinoli.test
    <Directory "D:/laragon/www/learn/craftcms/craft-kinoli/dev">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

and the .hosts file has an entry with the following content: 127.0.0.1 craftkinoli.test

The webpack files have been updated to use the url as hostname.

kinoli commented 5 years ago

It could be, try clearing out the database and run through the installation again and put in your domain.

On Mon, Sep 16, 2019 at 6:41 PM Ardian notifications@github.com wrote:

I did try removing all .htaccess content without success. However, when first installed I remember I didn’t opt for local domain, instead I used the localhost path. Could that cause the issue?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kinoli/craft-bootstrap-sass-vue-boilerplate/issues/2?email_source=notifications&email_token=AAAPALXYSO4DED4WGRYWBR3QKARTRA5CNFSM4IW77DP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD625P6A#issuecomment-532011000, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAPALW6QGL4RDZI7J6FYHLQKARTRANCNFSM4IW77DPQ .

ardian-c commented 5 years ago

I did do that with craftkinoli.test domain, same outcome.