I
I
Ivan2020-05-24 19:45:41
Vue.js
Ivan, 2020-05-24 19:45:41

How to run vue cli locally on ubuntu via link?

There is a vue cli project. Through npm run serve, it starts, but it’s reluctant to write and restart it every time, you need to follow a link like mysite. I'm setting up a virtual host. I added it to the hosts file, in the /etc/apache2/sites-avialable folder I created such a virtual host, activated sudo a2ensite mysite. Backend on Laravel, then you also need to somehow connect it.

<VirtualHost *:80>
ServerName mysite
ServerAdmin [email protected]
DocumentRoot /var/www/mysite
<Directory "/var/www/mysite">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>


When going to http://mysite in the browser, it gives
403 forbiden You don't have permission to access this resource.
How to run it correctly, and where else to configure?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2020-05-25
@Djonson86

serve - this is only for development, respectively, there is access only from the localhost.
It is possible to allow access from other hosts, but it is not recommended.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question