alex Posted June 30, 2012 Report Share Posted June 30, 2012 Pasul 1 Configuram urmatoarele fisiere:# nano /etc/bind/zones/db.slashlinux.info db.slashlinux.info$TTL 86400$ORIGIN info.slashlinux IN SOA ns1.slashlinux.info. root.slashlinux.info.( 2010021700 ; Serial 10800 ; Refresh 3600 ; Retry 3600000 ; Expire 86400 ) ; Minimum IN NS ns1.slashlinux.info. IN MX 10 mail.slashlinux.info. IN MX 20 slashlinux.info. IN A 192.168.1.1 # ip ul vostru static/public$ORIGIN slashlinux.info.www IN A 192.168.1.1mail IN A 192.168.1.1ns1 IN A 192.168.1.1root IN A 192.168.1.1--------------------------------------------subdomeniu IN A 192.168.1.1-------------------------------------------- # nano /etc/apache2/httpd.conf httpd.confNameVirtualHost *:80<VirtualHost *:80> ServerAdmin webmaster@localhost ServerName www.slashlinux.info ServerAlias slashlinux.info DocumentRoot /home/http-docs/slashlinux <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /home/http-docs/slashlinux Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Directory></VirtualHost><VirtualHost *:80> ServerAdmin webmaster@localhost ServerName www.slashlinux-test.info ServerAlias slashlinux-test.info DocumentRoot /home/http-docs/test</VirtualHost>------------------------------------------------- <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName subdomeniu.slashlinux.info ServerAlias subdomeniu.slashlinux.info DocumentRoot /home/http-docs/subdomeniu </VirtualHost>------------------------------------------------- # rndc reload# /etc/init.d/bind9 restart# /etc/init.d/apache2 restart Pasul 2Testam subdomeniul Quote Link to comment Share on other sites More sharing options...
Alex_xD Posted July 19, 2012 Report Share Posted July 19, 2012 smecher Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.