S
S
sibkedr2018-10-19 20:36:33
xampp
sibkedr, 2018-10-19 20:36:33

How to register the start of the server from a specific page of the site in browserSync?

When working on a site, I use XAMPP to run the server.
In the XAMPP setting in the file \xampp\apache\conf\extra\httpd-vhosts.conf
Specified

<VirtualHost *:80>
    DocumentRoot "D:/xampp/htdocs"
    ServerName localhost
    ServerAlias localhost
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot "D:/xampp/htdocs/my-site/src"
    ServerName my-site
    ServerAlias www.my-site
</VirtualHost>

Also in the file
c:\Windows\System32\drivers\etc\hosts I wrote
127.0.0.1 my-site
gulpfile.js when starting browserSync it is written
gulp.task('browserSync', function(){
  return browserSync.init({
    proxy: "my-site/"
  });
});

Everything works as it should, but the start is always from the index.php page. How to make it start from another page, for example item.php. Just to make it somehow easy to do, you can probably somehow use browserSync settings.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question