我正在使用CentOS 6和Apache尝试设置rails应用程序。我已经适应了一个星期了。
以下是我在httpd.conf文件中的内容:
NameVirtualHost 184.75.252.232:80
NameVirtualHost 127.0.0.1:80
NameVirtualHost *:
<VirtualHost 184.75.252.232:80>
ServerName austingatesdesign.us
ServerAlias www.austingatesdesign.us
DocumentRoot /home/portfolio/public_html
ServerAdmin webmaster@austingatesdesign.us
UseCanonicalName Off
CustomLog /usr/local/apache/domlogs/austingatesdesign.us combined
CustomLog /usr/local/apache/domlogs/austingatesdesign.us-bytes_log "%{%s}t %I .\n%{%s}t %O ."
## User portfolio # Needed for Cpanel::ApacheConf
UserDir enabled portfolio
<IfModule mod_suphp.c>
suPHP_UserGroup portfolio portfolio
</IfModule>
<IfModule !mod_disable_suexec.c>
<IfModule !mod_ruid2.c>
SuexecUserGroup portfolio portfolio
</IfModule>
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid portfolio portfolio
</IfModule>
<IfModule itk.c>
# For more information on MPM ITK, please read:
# http://mpm-itk.sesse.net/
AssignUserID portfolio portfolio
</IfModule>
ScriptAlias /cgi-bin/ /home/portfolio/public_html/cgi-bin/
# To customize this VirtualHost use an include file at the following location
# Include "/usr/local/apache/conf/userdata/std/2_2/portfolio/austingatesdesign.us/*.conf"
</VirtualHost>
<VirtualHost 184.75.252.232:80>
ServerName ausgates.me
ServerAlias www.ausgates.me
DocumentRoot /home/austin/public_html
ServerAdmin webmaster@ausgates.me
UseCanonicalName Off
CustomLog /usr/local/apache/domlogs/ausgates.me combined
CustomLog /usr/local/apache/domlogs/ausgates.me-bytes_log "%{%s}t %I .\n%{%s}t %O ."
## User austin # Needed for Cpanel::ApacheConf
UserDir enabled austin
<IfModule mod_suphp.c>
suPHP_UserGroup austin austin
</IfModule>
<IfModule !mod_disable_suexec.c>
<IfModule !mod_ruid2.c>
SuexecUserGroup austin austin
</IfModule>
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid austin austin
</IfModule>
<IfModule itk.c>
# For more information on MPM ITK, please read:
# http://mpm-itk.sesse.net/
AssignUserID austin austin
</IfModule>
ScriptAlias /cgi-bin/ /home/austin/public_html/cgi-bin/
# To customize this VirtualHost use an include file at the following location
# Include "/usr/local/apache/conf/userdata/std/2_2/austin/ausgates.me/*.conf"
</VirtualHost>
<VirtualHost 184.75.252.232:80>
DocumentRoot /home/austin/public_html/cms/public
ServerName ausgates.me
# Other directives here
</VirtualHost>
该应用程序位于/ home / austin / public-html / cms
root@server [/home/austin/public_html]# ls
./ cms/ Images/ main.css watch.html
../ entropybanner/ index.html normalize.css
404.html favicon.gif lightbox.css photos.html
about.html favicon.png lightbox.min.js responsive.css
cgi-bin/ favicon.svg lightbox.min.map script.js
应用程序本身:
root@server [/home/austin/public_html/cms]# ls
./ bin/ db/ .gitignore public/ test/
../ config/ Gemfile lib/ Rakefile tmp/
app/ config.ru Gemfile.lock log/ README.rdoc vendor/
我确定我做错了什么,我只是想不通,网上的每个教程都已经过时,或者步骤并不完全合适。我很茫然,我确定这是一个无聊的错误。