diff --git a/config/apache_project.conf.template b/config/apache_project.conf.template
index f8d7a90..e37cdc9 100644
--- a/config/apache_project.conf.template
+++ b/config/apache_project.conf.template
@@ -5,6 +5,6 @@ Alias /{{HOST}} "{{PATH}}"
Require all granted
- SetHandler "proxy:fcgi://127.0.0.1:{{PHP_PORT}}"
+ SetHandler "proxy:fcgi://127.0.0.1:{{PHP_PORT}}/"
diff --git a/config/httpd.conf.template b/config/httpd.conf.template
index 14551b9..44b9a90 100644
--- a/config/httpd.conf.template
+++ b/config/httpd.conf.template
@@ -2,7 +2,6 @@ Define SRVROOT "{{SRVROOT}}"
Listen {{LISTEN_ADDRESS}}:{{PORT}}
-LoadModule mpm_winnt_module modules/mod_mpm_winnt.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule dir_module modules/mod_dir.so
@@ -47,13 +46,13 @@ Alias /phpmyadmin "{{PHPMYADMIN_DIR}}"
Require all granted
- SetHandler "proxy:fcgi://127.0.0.1:{{PHP_PORT}}"
+ SetHandler "proxy:fcgi://127.0.0.1:{{PHP_PORT}}/"
# Global PHP handler
- SetHandler "proxy:fcgi://127.0.0.1:{{PHP_PORT}}"
+ SetHandler "proxy:fcgi://127.0.0.1:{{PHP_PORT}}/"
# Project configurations
diff --git a/src/main/ipc/index.ts b/src/main/ipc/index.ts
index a3e36f4..94081b7 100644
--- a/src/main/ipc/index.ts
+++ b/src/main/ipc/index.ts
@@ -43,7 +43,8 @@ async function rebuildNginxConfig(forceProjects: boolean = false): Promise<{ bin
const binPath = path.join(nginxPrefix, isWindows ? 'nginx.exe' : 'nginx')
const confDir = path.join(nginxPrefix, 'conf')
const logDir = path.join(configService.getBasePath(), 'logs')
- const rootPath = path.join(app.getAppPath(), 'www')
+ const rootPath = path.join(configService.getBasePath(), 'www')
+ if (!fs.existsSync(rootPath)) fs.mkdirSync(rootPath, { recursive: true })
// Ensure directories exist
const projectsConfDir = path.join(configService.getBasePath(), 'generated_configs', 'projects')
@@ -155,7 +156,8 @@ async function rebuildApacheConfig(forceProjects: boolean = false): Promise<{ bi
const apacheRoot = path.dirname(path.dirname(binPath)) // bin'in üstü
const logDir = path.join(configService.getBasePath(), 'logs')
- const rootPath = path.join(app.getAppPath(), 'www')
+ const rootPath = path.join(configService.getBasePath(), 'www')
+ if (!fs.existsSync(rootPath)) fs.mkdirSync(rootPath, { recursive: true })
// Ensure directories exist
const projectsConfDir = path.join(configService.getBasePath(), 'generated_configs', 'projects_apache')
diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx
index 546debe..1c71cf6 100644
--- a/src/renderer/src/App.tsx
+++ b/src/renderer/src/App.tsx
@@ -1357,11 +1357,13 @@ function App(): JSX.Element {
-
- handleOpenProjectNginxConfig(project.host)} sx={{ color: 'rgba(255,255,255,0.4)', '&:hover': { color: '#39A7FF' } }}>
-
-
-
+ {project.serverType !== 'apache' && (
+
+ handleOpenProjectNginxConfig(project.host)} sx={{ color: 'rgba(255,255,255,0.4)', '&:hover': { color: '#39A7FF' } }}>
+
+
+
+ )}
handleRemoveProject(project.id)} sx={{ color: 'rgba(255,255,255,0.4)', '&:hover': { color: '#ff4444' } }}>