User Tools

Site Tools


software:webdesign

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
software:webdesign [2019/07/13 06:24] superwizardsoftware:webdesign [2019/07/13 07:30] (current) – [Sample Virtual Hosts] superwizard
Line 106: Line 106:
 # Virtual hosts # Virtual hosts
 #Include conf/extra/httpd-vhosts.conf #Include conf/extra/httpd-vhosts.conf
 +
 +</code>
 +
 +====== Sample Virtual Hosts  ======
 +
 +<code>
 +<VirtualHost *:80>
 + # The ServerName directive sets the request scheme, hostname and port that
 + # the server uses to identify itself. This is used when creating
 + # redirection URLs. In the context of virtual hosts, the ServerName
 + # specifies what hostname must appear in the request's Host: header to
 + # match this virtual host. For the default virtual host (this file) this
 + # value is not decisive as it is used as a last resort host regardless.
 + # However, you must set it for any further virtual host explicitly.
 + 
 +        ServerName localhost
 + ServerAdmin madmin@madmin.yall
 + DocumentRoot /var/www/html
 +
 + ErrorLog ${APACHE_LOG_DIR}/error.log
 + CustomLog ${APACHE_LOG_DIR}/access.log combined
 +
 +</VirtualHost>
 +
 +<VirtualHost *:3321>
 + ServerName drupy.madmin.yall
 +        ServerAlias *.madmin.yall
 +
 + ServerAdmin madmin@madmin.yall
 + DocumentRoot /var/www/html/web/
 +
 + ErrorLog ${APACHE_LOG_DIR}/error.log
 + CustomLog ${APACHE_LOG_DIR}/access.log combined
 +</VirtualHost>
 +
 +
 +<VirtualHost *:3321>
 + ServerName services.madmin.yall
 +        ServerAlias *.madmin.yall
 +
 + ServerAdmin madmin@madmin.yall
 + DocumentRoot /usr/share/wordpress
 +
 + ErrorLog ${APACHE_LOG_DIR}/error.log
 + CustomLog ${APACHE_LOG_DIR}/access.log combined
 +
 +        Alias /blog /usr/share/wordpress
 +        <Directory /usr/share/wordpress>
 +              Options FollowSymLinks
 +              AllowOverride Limit Options FileInfo
 +              DirectoryIndex index.php
 +              Order allow,deny
 +              Allow from all
 +        </Directory>
 +        <Directory /usr/share/wordpress/wp-content>
 +              Options FollowSymLinks
 +              Order allow,deny
 +              Allow from all
 +        </Directory>
 +
 +</VirtualHost>
 +
  
 </code> </code>
software/webdesign.txt · Last modified: 2019/07/13 07:30 by superwizard