-
Вебмастеру
(
http://forum.oszone.net/forumdisplay.php?f=22)
apache поддомены
Всем привет!
Как зделать чтобы при вводе softrooom.no-ip.org открывался index.html, а при about.no-ip.org открывался about.html
И ещё как установить php? Что гд нужно прописать? Подскажите плиз:)
|
где хосты apache прописаны добавьте индексный файл DirectoryIndex файл.пхп
|
Цитата:
Цитата Sham
где хосты apache прописаны добавьте индексный файл DirectoryIndex файл.пхп »
|
Дак я не знаю вообще не чего
|
Clarc, Установка PHP
Цитата:
Цитата Clarc
при about.no-ip.org открывался about.html »
|
В .htaccess папки сайта about.no-ip.org добавьте DirectoryIndex about.html и не забудьте сам about.html рядом разместить :)
|
Спасибо!
Цитата:
Цитата Habetdin
В .htaccess папки сайта about.no-ip.org добавьте DirectoryIndex about.html и не забудьте сам about.html рядом разместить »
|
Я в Apache ничего не понимаю. У меня нету никаких папок, у меня всё по умолчанию index.html и about.html находятся в папке htdocs!
|
Вот что здесь не правильно?
читать дальше »
Код:
NameVirtualHost 95.82.216.153:80
<VirtualHost 95.82.216.153:80>
ServerAdmin webmaster@may_domain.ru
DocumentRoot D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\about
ServerName about.no-ip.org
ServerAlias about.no-ip.org
ErrorLog logs/mysite-error.log
CustomLog logs/mysite-access.log common
</VirtualHost>
<VirtualHost 95.82.216.153:80>
ServerAdmin webmaster@may_domain.ru
DocumentRoot D:\Program Files\Apache Software Foundation\Apache2.2\htdocs
ServerName 95.82.216.153
ServerAlias softrooom.no-ip.org
ErrorLog logs/mysite-error.log
CustomLog logs/mysite-access.log common
</VirtualHost>
Всё делал как указано здесь http://www.softtime.ru/info/articlep...?id_article=24
|
Цитата:
Цитата Sham
добавьте в каждый VirtualHost свой DirectoryIndex »
|
Неа не хочет
я добавил DirectoryIndex index.html index.html.var index.php
Правильно?:)
читать дальше »
Код:
<VirtualHost 95.82.216.153>
ServerAdmin webmaster@may_domain.ru
DocumentRoot D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\about
DirectoryIndex about.html about.html.var about.php
ServerName about.no-ip.org
ServerAlias about.no-ip.org
ErrorLog logs/mysite-error.log
CustomLog logs/mysite-access.log common
</VirtualHost>
<VirtualHost 95.82.216.153/about>
ServerAdmin webmaster@may_domain.ru
DocumentRoot D:\Program Files\Apache Software Foundation\Apache2.2\htdocs
DirectoryIndex index.html index.html.var index.php
ServerName 95.82.216.153
ServerAlias softrooom.no-ip.org 95.82.216.153
ErrorLog logs/mysite-error.log
CustomLog logs/mysite-access.log common
</VirtualHost>
|
Я чё то намутил теперь сервер запускается но выдаёт ошибку Forbidden
|
Цитата:
Цитата Clarc
DocumentRoot D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\about
DirectoryIndex about.html about.html.var about.php »
|
В папке D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\about есть один из файлов about.html, about.html.var или about.php? И незачем указывать столько файлов, можно только один :)
|
Цитата:
Цитата Habetdin
В папке D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\about есть один из файлов about.html, about.html.var или about.php?
Цитата:
Цитата Habetdin
И незачем указывать столько файлов, можно только один »
|
»
|
есть!
|
Время: 06:36.
© OSzone.net 2001-