mojastranka.sk funguje, www.mojastranka.sk nie...
k veci:
www.stranka1.sk ma hodi na default apache page IT WORKS ..
stranka1.sk mi nabehne normalne obsah.
na tom istom serveri www.stranka2.sk ide a stranka2.sk ide tiez
virtualhosty su pri oboch strankach nastavene rovanko, paradox je ze pri ssl virtualhostoch mi to ide. https://www.stranka.sk ma presmeruje na http://stranka.sk a obsah v pohode nabehne. konf. virtualhostov uvadzam nizsie.
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName stranka.sk
ServerAlias www.stranka.sk
DocumentRoot /var/www/stranka/wordpress
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/stranka/wordpress>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
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>
.........................................................
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
ServerName stranka.sk
ServerAlias www.stranka.sk
DocumentRoot /var/www/stranka/wordpress/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/stranka/wordpress>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
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/ssl_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>
### Zbytok vystupu som vynechal. Co si o tom myslite ?
dakujem
Pre pridávanie komentárov sa musíte prihlásiť.
uz som skusil vselico, dokonca som si doinstaloval webmin.. nepomohlo, ba este trosku zhorsilo situaciu :D
skusil som aj taky zufaly krok ako je restart celeho stroja.
neviem cim to moze byt, skusal som aj opacne serveralias dat bez www a servername s www to ma pre istotu rovno hadzalo do default diru. Uz fakt neviem. nikto s te sa tym este nestretli ?
.m
Easy návod aj s diskusiou je tu.
virtualhosty mam vsetky uzavrete. sorry ze som opomenul riadok vo vypise.
v error logoch sa nic nenachadza lebo stranky smeruje do dokument rootu. pri apache klasika "IT works".
viete ci by to mohlo byt aj niekde inde ?
.m
A nezabudni reloadnuť server ;)
nastavenie Virtualhostov som nechal povodne. jedine co som zmenil bolo ze adresar dokumentroot a aj konf subor virtualhostu som premenoval na meno stranky "stranka.sk" a link do sites-enabled som vytvoril pomocou a2ensite.
.m