{"id":4775,"date":"2020-11-29T08:55:34","date_gmt":"2020-11-28T23:55:34","guid":{"rendered":"https:\/\/www.xenos.jp\/~zen\/blog2\/?p=4775"},"modified":"2020-11-29T08:55:35","modified_gmt":"2020-11-28T23:55:35","slug":"post-4775","status":"publish","type":"post","link":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/2020\/11\/29\/post-4775\/","title":{"rendered":"Magento2.3.5\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306b\u7ba1\u7406\u30da\u30fc\u30b8\u304c404\u30a8\u30e9\u30fc\u306b\u306a\u308b"},"content":{"rendered":"\n<p>Ubuntu\u306b\u3001Magento 2.3.5\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5f8c\u306b\u3001\u7ba1\u7406\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3068\u3053\u308d\u3001\u30da\u30fc\u30b8\u304c404\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u3002\u4ed6\u306b\u3082\u3001\u3044\u304f\u3064\u304b\u306e\u30da\u30fc\u30b8\u304c404\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u3002<\/p>\n\n\n\n<p>\u539f\u56e0\u306f\u3001Apache\u306emod_rewrite\u306e\u8a2d\u5b9a\u304cMagento\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u306a\u3044\u304b\u3089\u3060\u3063\u305f\u3002<\/p>\n\n\n\n<p>Apache\u306b\u306f\u3001mod_rewrite\u3092\u5165\u308c\u3066\u3044\u308b\u3057\u3001\u8aad\u307f\u8fbc\u307e\u305b\u3066\u3082\u3044\u308b\u304c\u3001\u809d\u5fc3\u306eMagento\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u4f7f\u3046\u3088\u3046\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u304c\u539f\u56e0\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>.htaccess \u304cMagento\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u306a\u304b\u3063\u305f<\/li><li>apache.conf\u3067\u3001.htaccess\u306b\u3088\u308b\u8a2d\u5b9a\u306e\u4e0a\u66f8\u304d\u304c\u3067\u304d\u306a\u3044\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u305f<\/li><\/ul>\n\n\n\n<p>\u5bfe\u51e6\u3068\u3057\u3066\u306f\u3001\u5f8c\u8ff0\u306e\u53c2\u8003\u30da\u30fc\u30b8\u306e\u8a2d\u5b9a\u3092\u3044\u308c\u305f\u3060\u3051\u3060\u3002<\/p>\n\n\n\n<p>\u307e\u305aMagento\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u4e0b\u8a18\u306e .htaccess\u3092\u4fdd\u5b58\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>###############################################\n## overrides deployment configuration mode value\n## use command bin\/magento deploy:mode:set to switch modes\n#   SetEnv MAGE_MODE developer\n############################################\n## uncomment these lines for CGI mode\n## make sure to specify the correct cgi php binary file name\n## it might be \/cgi-bin\/php-cgi\n#    Action php5-cgi \/cgi-bin\/php5-cgi\n#    AddHandler php5-cgi .php\n############################################\n## GoDaddy specific options\n#   Options -MultiViews\n## you might also need to add this line to php.ini\n##     cgi.fix_pathinfo = 1\n## if it still doesn't work, rename php.ini to php5.ini\n############################################\n## this line is specific for 1and1 hosting\n    #AddType x-mapp-php5 .php\n    #AddHandler x-mapp-php5 .php\n############################################\n## default index file\n    DirectoryIndex index.php\n&lt;IfModule mod_php5.c>\n############################################\n## adjust memory limit\n    php_value memory_limit 768M\n    php_value max_execution_time 18000\n############################################\n## disable automatic session start\n## before autoload was initialized\n    php_flag session.auto_start off\n############################################\n## enable resulting html compression\n    #php_flag zlib.output_compression on\n###########################################\n## disable user agent verification to not break multiple image upload\n    php_flag suhosin.session.cryptua off\n&lt;\/IfModule>\n&lt;IfModule mod_php7.c>\n############################################\n## adjust memory limit\n    php_value memory_limit 768M\n    php_value max_execution_time 18000\n############################################\n## disable automatic session start\n## before autoload was initialized\n    php_flag session.auto_start off\n############################################\n## enable resulting html compression\n    #php_flag zlib.output_compression on\n###########################################\n## disable user agent verification to not break multiple image upload\n    php_flag suhosin.session.cryptua off\n&lt;\/IfModule>\n&lt;IfModule mod_security.c>\n###########################################\n## disable POST processing to not break multiple image upload\n    SecFilterEngine Off\n    SecFilterScanPOST Off\n&lt;\/IfModule>\n&lt;IfModule mod_deflate.c>\n############################################\n## enable apache served files compression\n## http:\/\/developer.yahoo.com\/performance\/rules.html#gzip\n    # Insert filter on all content\n    ###SetOutputFilter DEFLATE\n    # Insert filter on selected content types only\n    #AddOutputFilterByType DEFLATE text\/html text\/plain text\/xml text\/css text\/javascript\n    # Netscape 4.x has some problems...\n    #BrowserMatch ^Mozilla\/4 gzip-only-text\/html\n    # Netscape 4.06-4.08 have some more problems\n    #BrowserMatch ^Mozilla\/4\\.0&#91;678] no-gzip\n    # MSIE masquerades as Netscape, but it is fine\n    #BrowserMatch \\bMSIE !no-gzip !gzip-only-text\/html\n    # Don't compress images\n    #SetEnvIfNoCase Request_URI \\.(?:gif|jpe?g|png)$ no-gzip dont-vary\n    # Make sure proxies don't deliver the wrong content\n    #Header append Vary User-Agent env=!dont-vary\n&lt;\/IfModule>\n&lt;IfModule mod_ssl.c>\n############################################\n## make HTTPS env vars available for CGI mode\n    SSLOptions StdEnvVars\n&lt;\/IfModule>\n############################################\n## workaround for Apache 2.4.6 CentOS build when working via ProxyPassMatch with HHVM (or any other)\n## Please, set it on virtual host configuration level\n##    SetEnvIf Authorization \"(.*)\" HTTP_AUTHORIZATION=$1\n############################################\n&lt;IfModule mod_rewrite.c>\n############################################\n## enable rewrites\n    Options +FollowSymLinks\n    RewriteEngine on\n############################################\n## you can put here your magento root folder\n## path relative to web root\n    #RewriteBase \/magento\/\n############################################\n## workaround for HTTP authorization\n## in CGI environment\n    RewriteRule .* - &#91;E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]\n############################################\n## TRACE and TRACK HTTP methods disabled to prevent XSS attacks\n    RewriteCond %{REQUEST_METHOD} ^TRAC&#91;EK]\n    RewriteRule .* - &#91;L,R=405]\n############################################\n## redirect for mobile user agents\n    #RewriteCond %{REQUEST_URI} !^\/mobiledirectoryhere\/.*$\n    #RewriteCond %{HTTP_USER_AGENT} \"android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile\" &#91;NC]\n    #RewriteRule ^(.*)$ \/mobiledirectoryhere\/ &#91;L,R=302]\n############################################\n## never rewrite for existing files, directories and links\n    RewriteCond %{REQUEST_FILENAME} !-f\n    RewriteCond %{REQUEST_FILENAME} !-d\n    RewriteCond %{REQUEST_FILENAME} !-l\n############################################\n## rewrite everything else to index.php\n    RewriteRule .* index.php &#91;L]\n&lt;\/IfModule>\n############################################\n## Prevent character encoding issues from server overrides\n## If you still have problems, use the second line instead\n    AddDefaultCharset Off\n    #AddDefaultCharset UTF-8\n&lt;IfModule mod_expires.c>\n############################################\n## Add default Expires header\n## http:\/\/developer.yahoo.com\/performance\/rules.html#expires\n    ExpiresDefault \"access plus 1 year\"\n    ExpiresByType text\/html A0\n    ExpiresByType text\/plain A0\n&lt;\/IfModule>\n###########################################\n## Deny access to root files to hide sensitive application information\n    RedirectMatch 404 \/\\.git\n    &lt;Files composer.json>\n        order allow,deny\n        deny from all\n    &lt;\/Files>\n    &lt;Files composer.lock>\n        order allow,deny\n        deny from all\n    &lt;\/Files>\n    &lt;Files .gitignore>\n        order allow,deny\n        deny from all\n    &lt;\/Files>\n    &lt;Files .htaccess>\n        order allow,deny\n        deny from all\n    &lt;\/Files>\n    &lt;Files .htaccess.sample>\n        order allow,deny\n        deny from all\n    &lt;\/Files>\n    &lt;Files .php_cs>\n        order allow,deny\n        deny from all\n    &lt;\/Files>\n    &lt;Files .travis.yml>\n        order allow,deny\n        deny from all\n    &lt;\/Files>\n    &lt;Files CHANGELOG.md>\n        order allow,deny\n        deny from all\n    &lt;\/Files>\n    &lt;Files CONTRIBUTING.md>\n        order allow,deny\n        deny from all\n    &lt;\/Files>\n    &lt;Files CONTRIBUTOR_LICENSE_AGREEMENT.html>\n        order allow,deny\n        deny from all\n    &lt;\/Files>\n    &lt;Files COPYING.txt>\n        order allow,deny\n        deny from all\n    &lt;\/Files>\n    &lt;Files Gruntfile.js>\n        order allow,deny\n        deny from all\n    &lt;\/Files>\n    &lt;Files LICENSE.txt>\n        order allow,deny\n        deny from all\n    &lt;\/Files>\n    &lt;Files LICENSE_AFL.txt>\n        order allow,deny\n        deny from all\n    &lt;\/Files>\n    &lt;Files nginx.conf.sample>\n        order allow,deny\n        deny from all\n    &lt;\/Files>\n    &lt;Files package.json>\n        order allow,deny\n        deny from all\n    &lt;\/Files>\n    &lt;Files php.ini.sample>\n        order allow,deny\n        deny from all\n    &lt;\/Files>\n    &lt;Files README.md>\n        order allow,deny\n        deny from all\n    &lt;\/Files>\n################################\n## If running in cluster environment, uncomment this\n## http:\/\/developer.yahoo.com\/performance\/rules.html#etags\n    #FileETag none\n############################################\n## Add custom headers\n&lt;IfModule mod_headers.c>\n    Header set X-Content-Type-Options \"nosniff\"\n    Header set X-XSS-Protection \"1; mode=block\"\n&lt;\/IfModule><\/code><\/pre>\n\n\n\n<p>\u6b21\u306b\u3001\/etc\/apache\/\u306e\u4e2d\u306econf\u30d5\u30a1\u30a4\u30eb\uff08vhosts.conf\u3084apache.conf\u306a\u3069\u304b\u3089\u9069\u5207\u306a\u3082\u306e\u3092\u66f8\u304d\u63db\u3048\uff09\u306b\u4e0b\u8a18\u3092\u8ffd\u52a0\u3059\u308b\u3002\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3001Magento\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5909\u3048\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;Directory \/var\/www\/html>\n            Options Indexes FollowSymLinks MultiViews\n            AllowOverride All\n            allow from all\n &lt;\/Directory><\/code><\/pre>\n\n\n\n<p>\u6700\u5f8c\u306b\u3001Apache\u306e\u518d\u8d77\u52d5\u3092\u884c\u3046\u3002<\/p>\n\n\n\n<p>\u53c2\u8003\uff1a\u3000<a href=\"https:\/\/qastack.jp\/magento\/89125\/how-to-fix-magento-2-2-0-0-rc-admin-page-not-found-after-installation\">https:\/\/qastack.jp\/magento\/89125\/how-to-fix-magento-2-2-0-0-rc-admin-page-not-found-after-installation<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu\u306b\u3001Magento 2.3.5\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5f8c\u306b\u3001\u7ba1\u7406\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3068\u3053\u308d\u3001\u30da\u30fc\u30b8\u304c404\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u3002\u4ed6\u306b\u3082\u3001\u3044\u304f\u3064\u304b\u306e\u30da\u30fc\u30b8\u304c404\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u3002 \u539f\u56e0\u306f\u3001Apache\u306emod_rewrit [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[47,217,48],"class_list":["post-4775","post","type-post","status-publish","format-standard","hentry","category-tech-memo","tag-apache","tag-magento","tag-php"],"_links":{"self":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/4775","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/comments?post=4775"}],"version-history":[{"count":1,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/4775\/revisions"}],"predecessor-version":[{"id":4776,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/4775\/revisions\/4776"}],"wp:attachment":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/media?parent=4775"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/categories?post=4775"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/tags?post=4775"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}