Install wordpress inside a virtualhost

Just what i needed. Ive been trying to set wordpress as default virtual host with no sucess (always shows the default nethserver pagina)

It should already be possible to have wordpress working in a virtual host.

Do you use the wordpress module or did you install wordpress manually to a vhost?

You may execute httpd -S on command line to check which vhosts are used.

1 Like

Hey @mrmarkuz

I installed the worpress module from @stephdl repository.
I then go into wordpress settings and i configure the url to my domain. Https://example.com

[root@server ~]# httpd -S
VirtualHost configuration:
*:443 is a NameVirtualHost
default server server.example.com (/etc/httpd/conf.d/nethserver.conf:44)
port 443 namevhost server.example.com (/etc/httpd/conf.d/nethserver.conf:44)
port 443 namevhost server.example.com (/etc/httpd/conf.d/ssl.conf:56)
ServerRoot: “/etc/httpd”
Main DocumentRoot: “/var/www/html”
Main ErrorLog: “/etc/httpd/logs/error_log”
Mutex authdigest-opaque: using_defaults
Mutex proxy-balancer-shm: using_defaults
Mutex rewrite-map: using_defaults
Mutex authdigest-client: using_defaults
Mutex ssl-stapling: using_defaults
Mutex proxy: using_defaults
Mutex authn-socache: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="/run/httpd/" mechanism=default
Mutex mpm-accept: using_defaults
PidFile: “/run/httpd/httpd.pid”
Define: _RH_HAS_HTTPPROTOCOLOPTIONS
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name=“apache” id=48
Group: name=“apache” id=48

Thanks for the help.

Fábio