2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 09:13:49 +08:00

fix: 优化问题

This commit is contained in:
2026-01-20 17:28:31 +08:00
parent 21d120451c
commit df59816e4e
4 changed files with 10 additions and 7 deletions

View File

@@ -342,6 +342,9 @@ func (r *websiteRepo) Create(ctx context.Context, req *request.WebsiteCreate) (*
if err = phpVhost.SetPHP(req.PHP); err != nil {
return nil, err
}
if err = phpVhost.SetIndex([]string{"index.php", "index.html"}); err != nil {
return nil, err
}
if err = phpVhost.SetConfig("010-rewrite.conf", "site", ""); err != nil {
return nil, err
}

View File

@@ -20,7 +20,7 @@ IncludeOptional /opt/ace/sites/default/config/shared/*.conf
<VirtualHost *:80>
ServerName localhost
DocumentRoot /opt/ace/sites/default/public
DirectoryIndex index.php index.html
DirectoryIndex index.html
# custom configs
IncludeOptional /opt/ace/sites/default/config/site/*.conf
<Directory /opt/ace/sites/default/public>

View File

@@ -21,7 +21,7 @@ server {
listen 80;
server_name localhost;
root /opt/ace/sites/default/public;
index index.php index.html;
index index.html;
# custom configs
include /opt/ace/sites/default/config/site/*.conf;
}

View File

@@ -134,7 +134,7 @@ onMounted(() => {
<n-card :title="$gettext('Running Status')">
<template #header-extra>
<n-switch
v-model:disabled="fetchingIsEnabled"
:disabled="fetchingIsEnabled"
v-model:value="isEnabled"
@update:value="handleIsEnabled"
>
@@ -147,24 +147,24 @@ onMounted(() => {
{{ statusStr }}
</n-alert>
<n-flex>
<n-button type="success" v-model:disabled="fetchingStatus" @click="handleStart">
<n-button type="success" :disabled="fetchingStatus || status" @click="handleStart">
{{ $gettext('Start') }}
</n-button>
<n-popconfirm @positive-click="handleStop">
<template #trigger>
<n-button type="error" v-model:disabled="fetchingStatus">
<n-button type="error" :disabled="fetchingStatus || !status">
{{ $gettext('Stop') }}
</n-button>
</template>
{{ $gettext('Are you sure you want to stop %{ service }?', { service: props.service }) }}
</n-popconfirm>
<n-button type="warning" v-model:disabled="fetchingStatus" @click="handleRestart">
<n-button type="warning" :disabled="fetchingStatus || !status" @click="handleRestart">
{{ $gettext('Restart') }}
</n-button>
<n-button
v-if="showReload"
type="primary"
v-model:disabled="fetchingStatus"
:disabled="fetchingStatus || !status"
@click="handleReload"
>
{{ $gettext('Reload') }}