drupal localhost到ubuntu中的域名

时间:2014-02-23 03:37:19

标签: ubuntu drupal apache2

我在本地计算机上安装了drupal(ubuntu 12.04)。当我点击http // localhost / drupal时它成功运行。我想将localhost更改为mywebsite。我试过谷歌,但解决方案直到现在都没有用。我的/ etc / apache2 / sites-enabled / drupal在下面提到

<VirtualHost 127.0.0.1:80>
ServerAdmin webmaster@localhost

DocumentRoot /var/www
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>
<Directory /var/www/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
    AllowOverride None
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    Order allow,deny
    Allow from all
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

</VirtualHost>

1 个答案:

答案 0 :(得分:0)

作为Drupal用户,我强烈推荐使用Acquia Dev Desktop作为运行Drupal的方法。它有许多功能,包括命名你的酒庄。