Posiadam domenę:
Kod: Zaznacz cały
mojadomena.pl
Dodałem rekord A w OVH dla s.mojadomena.pl i
Kod: Zaznacz cały
[url=http://www.s.mojadomena.pl]www.s.mojadomena.pl[/URL]
W pliku konfiguracyjnym Apache (/etc/apache2/sites-available/default) mam tak:
Kod: Zaznacz cały
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
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 ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost s.mojadomena.pl:80>
ServerName s.mojadomena.pl
ServerAlias www.s.mojadomena.pl
ServerAlias s.mojadomena
DocumentRoot /var/www/s/
<Directory />
Options FollowSymLinks
Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
Kod: Zaznacz cały
127.0.0.1 localhost.localdomain localhost
# Auto-generated hostname. Please do not remove this comment.
178.33.196.60 s.mojadomena.pl s
::1 localhost
Kod: Zaznacz cały
s.mojadomena.pl