Судя по документации У нас отсутствуют файлы s1.conf, ssl.s1.conf (видимо после удаления default-сайта), поэтому загрузка конфигурации из /etc/nginx/bx/site_settings/<SITE_NAME>/ не происходит. Как правильно поступить в данном случае?
Первоначально развернуть диск в Hyper-V. Если ВМ из образа битрих:
Код
# fdisk -c -u -l
Disk /dev/sda: 32.2 GB, 32212254720 bytes, 62914560 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x0009c245
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 411647 204800 83 Linux
/dev/sda2 411648 1460223 524288 82 Linux swap / Solaris
/dev/sda3 1460224 41058303 19799040 83 Linux
То, например:
Код
# fdisk -u /dev/sda
Command (m for help): d
Partition number (1-3, default 3): 3
Partition 3 is deleted
Command (m for help): n
Partition type:
p primary (2 primary, 0 extended, 2 free)
e extended
Select (default p): p
Partition number (3,4, default 3): 3
First sector (1460224-62914559, default 1460224):
Using default value 1460224
Last sector, +sectors or +size{K,M,G} (1460224-62914559, default 62914559):
Using default value 62914559
Partition 3 of type Linux and of size 29.3 GiB is set
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
# partx -u /dev/sda3
# shutdown -r now
# resize2fs /dev/sda3
Потому что мне необходимо изменить параметры, которые расположены после этих директив. А согласно документации, свои настройки нужно добавлять в файлы расположенные в этих каталогах, в частности /etc/httpd/bx/custom/z_bx_custom.conf.