httpd.conf settings

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

httpd.conf settings

1,402 Views
davidzhou
Contributor V

Hi ,

I have imx6ul dev board.

I started apache2 httpd as

httpd -h /home/www

it runs great. But how to setup a default page such as index.html, or index.php, or default.html?

I googled and found some information regarding this. But anything I add into the httpd.conf, such as

<IfModule dir_module>     DirectoryIndex index.html index.php   </IfModule>
I got config error message, with the command
httpd -c httpd.conf 

What did I miss?

Thank you,

David Zhou

Labels (2)
0 Kudos
Reply
3 Replies

1,253 Views
jimmychan
NXP TechSupport
NXP TechSupport
0 Kudos
Reply

1,253 Views
davidzhou
Contributor V

Thanks, Jimmy. I think I may have a different yocto version. When I added apache2 through PACKAGECONFIG_append, I don't have etc/httpd folder and files. I have to dig into it.

David Zhou

0 Kudos
Reply

1,253 Views
davidzhou
Contributor V

I added IMAGE_INSTALL_append = "apache2"

works

David

0 Kudos
Reply