apache2的默认html修改

使用127.0.0.1的时候,默认打开的是index.html,可以通过配置文件修改成我们想要的html

vi /etc/apache2/mods-enabled/dir.conf

<IfModule mod_dir.c>
        DirectoryIndex WS.html index.html index.cgi index.pl index.php index.xhtml index.htm
</IfModule>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet


如上是修改为了WS.html

开机自启动火狐浏览器,打开127.0.0.1,延迟启动(等待设备启动,10s),步骤如下(建议使用desktop文件)
sudo vi /etc/xdg/autostart/firefox-localhost.desktop

[Desktop Entry]
Type=Application
Name=Firefox Localhost
Exec=bash -c "sleep 10 && firefox --new-window 127.0.0.1"
StartupNotify=false
X-GNOME-Autostart-enabled=true

或者  sudo vi /etc/rc.local,在exit 0之前添加

sleep 30
su - [你的用户名] -c "export DISPLAY=:0 && firefox --new-window 127.0.0.1" &

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值