GithubHelp home page GithubHelp logo

healthone's Introduction

HealthOne Sportcentrum

Uitwerking Project P5 File structure: https://www.ictshore.com/php/php-project-structure/

Configureer de vhosts

Je kan je XAMP zo configureren dat je meerdere PHP apps kan hosten op je locale PC. De apps kan je dan draaien op bijvoorbeeld: http://healthone.localhost/, http://app2.localhost/ Om dit zo te configureren moet je een aantal configuratie onderdelen bewerken.

Windows

Zorg ervoor dat de Virtual host config file ingeladen wordt:

  • Open Xammp
  • Klik op Apache config -> Apache(httpd.conf)
  • Zoek naar Include conf/extra/httpd-vhosts.conf en verwijder de # als deze vooraan deze regel aanwezig is.
  • Voeg de onderstaande code toe aan de virtual host config: C:\xampp\apache\conf\extra\httpd-vhosts.conf
<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs"
ServerName localhost
</VirtualHost>

Listen 4001    
NameVirtualHost *:4001
<VirtualHost *:80 *:4001>
    DocumentRoot "C:/xampp/apps/healthone/htdocs"
    ServerName healthone.localhost
    <Directory "C:/xampp/apps/healthone/htdocs">
        Options Indexes FollowSymLinks ExecCGI Includes

        # AllowOverride controls what directives may be placed in .htaccess files.
        # It can be "All", "None", or any combination of the keywords:
        #   Options FileInfo AuthConfig Limit
        #
        #AllowOverride None
        # since XAMPP 1.4:
        AllowOverride All

        #
        # Controls who can get stuff from this server.
        #
        Require all granted
    </Directory>
</VirtualHost>
  • Restart Apache in de XAMP instance.
  • Verplaats alle inhoud van de repository die je hebt gecloned naar: C:/xampp/apps/healthone/htdocs
  • Open nu de C:/xampp/apps/healthone/htdocs in PHPStorm.

MacOS

Zorg ervoor dat de Virtual host config file ingeladen wordt:

  • Open /Applications/XAMPP/etc/httpd.conf
  • Zoek naar Include etc/extra/httpd-vhosts.conf en verwijder de # als deze vooraan deze regel aanwezig is.
  • Voeg de onderstaande code toe aan de virtual host config: /Applications/XAMPP/etc/extra/httpd-vhosts.conf
<VirtualHost *:80>
DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/"
ServerName localhost
</VirtualHost>

Listen 4001    
NameVirtualHost *:4001
<VirtualHost *:80 *:4001>
    DocumentRoot "/Applications/XAMPP/xamppfiles/apps/healthone/htdocs"
    ServerName healthone.localhost
    <Directory "/Applications/XAMPP/xamppfiles/apps/healthone/htdocs">
        Options Indexes FollowSymLinks ExecCGI Includes

        # AllowOverride controls what directives may be placed in .htaccess files.
        # It can be "All", "None", or any combination of the keywords:
        #   Options FileInfo AuthConfig Limit
        #
        #AllowOverride None
        # since XAMPP 1.4:
        AllowOverride All

        #
        # Controls who can get stuff from this server.
        #
        Require all granted
    </Directory>
</VirtualHost>
  • Restart Apache in de XAMP instance.
  • Verplaats alle inhoud van de repository die je hebt gecloned naar: /Applications/XAMPP/xamppfiles/apps/healthone/htdocs
  • Open nu de /Applications/XAMPP/xamppfiles/apps/healthone/htdocs in PHPStorm.

Host file aanpassen

Met de hostfile kan je de localhost of een ip omzetten naar een bepaalde url voor in de browser.

  • Open de host file /etc/hosts met sudo
  • Voeg de volgende regel onderaan to aan de hostfile
127.0.0.1           healthone.localhost

Deze stappen zijn gebaseerd op de How-To-Guide die je kan terug vinden in je XAMP dashboard: http://localhost/dashboard/docs/configure-vhosts.html

healthone's People

Contributors

jonavdv avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.