質問編集履歴

1

レイアウト変更

2018/01/29 12:05

投稿

scrollman
scrollman

スコア83

test CHANGED
File without changes
test CHANGED
@@ -272,7 +272,91 @@
272
272
 
273
273
  ```
274
274
 
275
-
275
+ ```ルーティングするやつ?.conf
276
+
277
+ <VirtualHost *:80>
278
+
279
+ # The ServerName directive sets the request scheme, hostname and port that
280
+
281
+ # the server uses to identify itself. This is used when creating
282
+
283
+ # redirection URLs. In the context of virtual hosts, the ServerName
284
+
285
+ # specifies what hostname must appear in the request's Host: header to
286
+
287
+ # match this virtual host. For the default virtual host (this file) this
288
+
289
+ # value is not decisive as it is used as a last resort host regardless.
290
+
291
+ # However, you must set it for any further virtual host explicitly.
292
+
293
+ #ServerName www.example.com
294
+
295
+
296
+
297
+ ServerAdmin ***********
298
+
299
+ DocumentRoot /var/www/
300
+
301
+
302
+
303
+
304
+
305
+ # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
306
+
307
+ # error, crit, alert, emerg.
308
+
309
+ # It is also possible to configure the loglevel for particular
310
+
311
+ # modules, e.g.
312
+
313
+ #LogLevel info ssl:warn
314
+
315
+
316
+
317
+ ErrorLog ${APACHE_LOG_DIR}/error.log
318
+
319
+ CustomLog ${APACHE_LOG_DIR}/access.log combined
320
+
321
+
322
+
323
+ # For most configuration files from conf-available/, which are
324
+
325
+ # enabled or disabled at a global level, it is possible to
326
+
327
+ # include a line for only one particular virtual host. For example the
328
+
329
+ # following line enables the CGI configuration for this host only
330
+
331
+ # after it has been globally disabled with "a2disconf".
332
+
333
+ #Include conf-available/serve-cgi-bin.conf
334
+
335
+ </VirtualHost>
336
+
337
+ <VirtualHost *:80>
338
+
339
+
340
+
341
+ ServerAdmin ****************
342
+
343
+ DocumentRoot /var/www/test
344
+
345
+
346
+
347
+ ErrorLog ${APACHE_LOG_DIR}/error.log
348
+
349
+ CustomLog ${APACHE_LOG_DIR}/access.log combined
350
+
351
+
352
+
353
+ </VirtualHost>
354
+
355
+ # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
356
+
357
+ ```
358
+
359
+ wordpressの設定
276
360
 
277
361
  ```メインディレクトリ?の.htaccess
278
362
 
@@ -524,128 +608,44 @@
524
608
 
525
609
 
526
610
 
527
- ```ルーティングするやつ?.conf
528
-
529
- <VirtualHost *:80>
530
-
531
- # The ServerName directive sets the request scheme, hostname and port that
532
-
533
- # the server uses to identify itself. This is used when creating
534
-
535
- # redirection URLs. In the context of virtual hosts, the ServerName
536
-
537
- # specifies what hostname must appear in the request's Host: header to
538
-
539
- # match this virtual host. For the default virtual host (this file) this
540
-
541
- # value is not decisive as it is used as a last resort host regardless.
542
-
543
- # However, you must set it for any further virtual host explicitly.
544
-
545
- #ServerName www.example.com
546
-
547
-
548
-
549
- ServerAdmin ***********
550
-
551
- DocumentRoot /var/www/
552
-
553
-
554
-
555
-
556
-
557
- # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
558
-
559
- # error, crit, alert, emerg.
560
-
561
- # It is also possible to configure the loglevel for particular
562
-
563
- # modules, e.g.
564
-
565
- #LogLevel info ssl:warn
566
-
567
-
568
-
569
- ErrorLog ${APACHE_LOG_DIR}/error.log
570
-
571
- CustomLog ${APACHE_LOG_DIR}/access.log combined
572
-
573
-
574
-
575
- # For most configuration files from conf-available/, which are
576
-
577
- # enabled or disabled at a global level, it is possible to
578
-
579
- # include a line for only one particular virtual host. For example the
580
-
581
- # following line enables the CGI configuration for this host only
582
-
583
- # after it has been globally disabled with "a2disconf".
584
-
585
- #Include conf-available/serve-cgi-bin.conf
586
-
587
- </VirtualHost>
588
-
589
- <VirtualHost *:80>
590
-
591
-
592
-
593
- ServerAdmin ****************
594
-
595
- DocumentRoot /var/www/test
596
-
597
-
598
-
599
- ErrorLog ${APACHE_LOG_DIR}/error.log
600
-
601
- CustomLog ${APACHE_LOG_DIR}/access.log combined
602
-
603
-
604
-
605
- </VirtualHost>
606
-
607
- # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
611
+
612
+
613
+ 試み1
614
+
615
+ 試しに作ったサブサイト「/test」を「ルーティングするやつ?.conf」の下のほうに追加してapache2をリロードしましたが、特に変化はありませんでした。
616
+
617
+
618
+
619
+ 試み2
620
+
621
+ [http://wp-e.org/2015/12/11/6389/]( http://wp-e.org/2015/12/11/6389/)
622
+
623
+ を参考に、 AllowOverride None AllowOverride Fileinfo に変えてみると、
624
+
625
+
626
+
627
+ ```ここに言語を入力
628
+
629
+ Internal Server Error
630
+
631
+
632
+
633
+ The server encountered an internal error or misconfiguration and was unable to complete your request.
634
+
635
+
636
+
637
+ Please contact the server administrator at ************* to inform them of the time this error occurred, and the actions you performed just before this error.
638
+
639
+
640
+
641
+ More information about this error may be available in the server error log.
642
+
643
+ Apache/2.4.10 (Raspbian) Server at ************* Port 80
644
+
645
+
608
646
 
609
647
  ```
610
648
 
611
-
612
-
613
- 試み1
614
-
615
- 試しに作ったサブサイト「/test」を「ルーティングするやつ?.conf」の下のほうに追加してapache2をリロードしましたが、特に変化はありませんでした。
616
-
617
-
618
-
619
- 試み2
620
-
621
- [http://wp-e.org/2015/12/11/6389/]( http://wp-e.org/2015/12/11/6389/)
622
-
623
- を参考に、 AllowOverride None を AllowOverride Fileinfo に変えてみると、
624
-
625
-
626
-
627
- ```ここに言語を入力
628
-
629
- Internal Server Error
630
-
631
-
632
-
633
- The server encountered an internal error or misconfiguration and was unable to complete your request.
634
-
635
-
636
-
637
- Please contact the server administrator at ************* to inform them of the time this error occurred, and the actions you performed just before this error.
638
-
639
-
640
-
641
- More information about this error may be available in the server error log.
642
-
643
- Apache/2.4.10 (Raspbian) Server at ************* Port 80
644
-
645
-
646
-
647
- ```
648
-
649
649
  と、サブサイトだけでなくメインサイトまでこう表示されるようになりました。
650
650
 
651
651
  ※上の方では元の状態に戻しました。