Skip to content

Instantly share code, notes, and snippets.

@akrez
Last active September 6, 2023 09:30
Show Gist options
  • Select an option

  • Save akrez/efe630d37ec5fe2e74df91266b74811f to your computer and use it in GitHub Desktop.

Select an option

Save akrez/efe630d37ec5fe2e74df91266b74811f to your computer and use it in GitHub Desktop.
define virtual host in wamp as fastcgi and nonefastcgi
#
127.0.0.1 localhost
::1 localhost
127.0.0.255 lavash
::1 lavash
127.0.0.254 lavashnonecgi
::1 lavashnonecgi
# Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
#
<VirtualHost 127.0.0.255:80>
ServerName lavash
DocumentRoot "${INSTALL_DIR}/www/lavash"
<Directory "${INSTALL_DIR}/www/lavash/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
<IfModule fcgid_module>
Define FCGIPHPVERSION "7.3.33"
FcgidInitialEnv PHPRC ${PHPROOT}${FCGIPHPVERSION}
<Files ~ "\.php$">
Options +Indexes +Includes +FollowSymLinks +MultiViews +ExecCGI
AddHandler fcgid-script .php
FcgidWrapper "${PHPROOT}${FCGIPHPVERSION}/php-cgi.exe" .php
</Files>
</IfModule>
</VirtualHost>
#
<VirtualHost 127.0.0.254:80>
ServerName lavashnonecgi
DocumentRoot "${INSTALL_DIR}/www/lavashnonecgi"
<Directory "${INSTALL_DIR}/www/lavashnonecgi/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment