Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Language specific forums Russian (Русский) Веб сервер
  • Search

Как повесить все сайты кроме одного в каталог?

Вопросы по работе Веб сервера
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
1 post • Page 1 of 1
RozMakc
Posts: 1
Joined: Tue May 19, 2020 9:57 am

Os: CentOS 6x
Web: apache
Как повесить все сайты кроме одного в каталог?
  • Quote

Post by RozMakc » Tue May 19, 2020 10:08 am

Привет, Как повесить все сайты кроме одного в каталог?
в конфиг пишу:

Code: Select all

<VirtualHost *:80>
	DocumentRoot /home/admin/web/landings
	<Directory /home/admin/web/landings>
		RewriteEngine on
		RewriteCond %{REQUEST_FILENAME} !-f
		RewriteCond %{REQUEST_FILENAME} !-d
		RewriteRule . index.php
		DirectoryIndex index.php
		Require all granted
	</Directory>
</VirtualHost>

<VirtualHost *:443>
	DocumentRoot /home/admin/web/landings
	<Directory /home/admin/web/landings>
		RewriteEngine on
		RewriteCond %{REQUEST_FILENAME} !-f
		RewriteCond %{REQUEST_FILENAME} !-d
		RewriteRule . index.php
		DirectoryIndex index.php
		Require all granted
	</Directory>
</VirtualHost>
но не хочет работать, все равно в свой каталог обращается.
Top


Post Reply
  • Print view
1 post • Page 1 of 1

Return to “Веб сервер”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password