No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    [SOLVED]Deploy "dist" on Apache (routing problem)

    Help
    2
    3
    2162
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kayumanggi last edited by kayumanggi

      Here is what I did to simulate project deployment

      httpd-vhosts.conf
      <VirtualHost *:80>
      DocumentRoot “path/to/quasarproject/dist”
      ServerName quasarproject
      ServerAlias quasarproject
      </VirtualHost>

      hosts
      127.0.0.1 quasarproject

      All is good when I visit http://quasarproject initially, I can navigate through my app without problems. But if I refresh the page or entered a subpath on the browser e.g. http://quasarproject/users, I get Error 404. My guess is that I need .htaccess for this but I’m not sure how.

      Regards

      1 Reply Last reply Reply Quote 0
      • K
        kayumanggi last edited by

        got it working https://router.vuejs.org/en/essentials/history-mode.html

        1 Reply Last reply Reply Quote 1
        • J
          Joshua last edited by

          <IfModule mod_rewrite.c>
          RewriteEngine On
          RewriteCond %{HTTPS} off
          RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
          </IfModule>

          This worked for me including www. http redirects to https

          1 Reply Last reply Reply Quote 0
          • First post
            Last post